From a4db0f39e257950a5c89203452c1184c7080e5bd Mon Sep 17 00:00:00 2001 From: Abhishek Koneru Date: Fri, 18 May 2012 13:17:34 -0400 Subject: Fixes for Coverity Defects of Category : FB.DM_NUMBER_CTOR, FB.DM_STRING_CTOR, FB.DM_STRING_VOID_CTOR --- base/silent/src/com/netscape/pkisilent/common/CMSProperties.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'base/silent/src/com/netscape/pkisilent/common/CMSProperties.java') 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 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 { } nextLine = nextLine.substring(startIndex, nextLine.length()); - line = new String(loppedLine + nextLine); + line = loppedLine + nextLine; } // Find start of key -- cgit