summaryrefslogtreecommitdiffstats
path: root/base/silent/src/com/netscape/pkisilent/common/CMSProperties.java
diff options
context:
space:
mode:
authorAbhishek Koneru <akoneru@redhat.com>2012-05-18 13:17:34 -0400
committerAde Lee <alee@redhat.com>2012-05-24 23:08:28 -0400
commita4db0f39e257950a5c89203452c1184c7080e5bd (patch)
tree2d3ebb818945db19450ed7c51e1c0e6b1582e6bc /base/silent/src/com/netscape/pkisilent/common/CMSProperties.java
parent307199314968b85059de62fbb694bd62b2502f46 (diff)
downloadpki-a4db0f39e257950a5c89203452c1184c7080e5bd.tar.gz
pki-a4db0f39e257950a5c89203452c1184c7080e5bd.tar.xz
pki-a4db0f39e257950a5c89203452c1184c7080e5bd.zip
Fixes for Coverity Defects of Category : FB.DM_NUMBER_CTOR, FB.DM_STRING_CTOR, FB.DM_STRING_VOID_CTOR
Diffstat (limited to 'base/silent/src/com/netscape/pkisilent/common/CMSProperties.java')
-rw-r--r--base/silent/src/com/netscape/pkisilent/common/CMSProperties.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/silent/src/com/netscape/pkisilent/common/CMSProperties.java b/base/silent/src/com/netscape/pkisilent/common/CMSProperties.java
index 241d13f06..16f18500c 100644
--- a/base/silent/src/com/netscape/pkisilent/common/CMSProperties.java
+++ b/base/silent/src/com/netscape/pkisilent/common/CMSProperties.java
@@ -215,7 +215,7 @@ class CMSProperties extends Hashtable<String, String> {
String nextLine = in.readLine();
if (nextLine == null) {
- nextLine = new String("");
+ nextLine = "";
}
String loppedLine = line.substring(0, line.length() - 1);
// Advance beyond whitespace on new line
@@ -229,7 +229,7 @@ class CMSProperties extends Hashtable<String, String> {
}
nextLine = nextLine.substring(startIndex,
nextLine.length());
- line = new String(loppedLine + nextLine);
+ line = loppedLine + nextLine;
}
// Find start of key