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/java-tools/src/com/netscape/cmstools/PrettyPrintCert.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'base/java-tools/src/com/netscape/cmstools/PrettyPrintCert.java') diff --git a/base/java-tools/src/com/netscape/cmstools/PrettyPrintCert.java b/base/java-tools/src/com/netscape/cmstools/PrettyPrintCert.java index 88d8cb05b..fdb988dd5 100644 --- a/base/java-tools/src/com/netscape/cmstools/PrettyPrintCert.java +++ b/base/java-tools/src/com/netscape/cmstools/PrettyPrintCert.java @@ -27,8 +27,6 @@ import java.io.InputStreamReader; import java.security.cert.CertificateException; import java.util.Locale; -import com.netscape.cmsutil.util.Utils; - import netscape.security.util.CertPrettyPrint; import netscape.security.x509.CertificateSubjectName; import netscape.security.x509.RDN; @@ -36,6 +34,8 @@ import netscape.security.x509.X500Name; import netscape.security.x509.X509CertImpl; import netscape.security.x509.X509CertInfo; +import com.netscape.cmsutil.util.Utils; + /** * The PrettyPrintCert class is a utility program designed to "pretty print" * a certificate. It assumes that the name of a data file is passed to the @@ -79,13 +79,13 @@ public class PrettyPrintCert { public static void main(String argv[]) { BufferedReader inputCert = null; - String encodedBASE64CertChunk = new String(); - String encodedBASE64Cert = new String(); + String encodedBASE64CertChunk = ""; + String encodedBASE64Cert = ""; byte decodedBASE64Cert[] = null; X509CertImpl cert = null; Locale aLocale = null; CertPrettyPrint certDetails = null; - String pp = new String(); + String pp = ""; FileOutputStream outputCert = null; boolean mSimpleInfo = false; String inputfile = null; -- cgit