diff options
author | Abhishek Koneru <akoneru@redhat.com> | 2012-05-18 13:17:34 -0400 |
---|---|---|
committer | Ade Lee <alee@redhat.com> | 2012-05-24 23:08:28 -0400 |
commit | a4db0f39e257950a5c89203452c1184c7080e5bd (patch) | |
tree | 2d3ebb818945db19450ed7c51e1c0e6b1582e6bc /base/java-tools/src/com/netscape/cmstools/PrettyPrintCrl.java | |
parent | 307199314968b85059de62fbb694bd62b2502f46 (diff) | |
download | pki-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/java-tools/src/com/netscape/cmstools/PrettyPrintCrl.java')
-rw-r--r-- | base/java-tools/src/com/netscape/cmstools/PrettyPrintCrl.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/base/java-tools/src/com/netscape/cmstools/PrettyPrintCrl.java b/base/java-tools/src/com/netscape/cmstools/PrettyPrintCrl.java index 6bb43aee7..8bd4f9ed5 100644 --- a/base/java-tools/src/com/netscape/cmstools/PrettyPrintCrl.java +++ b/base/java-tools/src/com/netscape/cmstools/PrettyPrintCrl.java @@ -28,8 +28,6 @@ import java.security.cert.CRLException; import java.security.cert.CertificateException; import java.util.Locale; -import com.netscape.cmsutil.util.Utils; - import netscape.security.util.CrlPrettyPrint; import netscape.security.x509.DeltaCRLIndicatorExtension; import netscape.security.x509.HoldInstructionExtension; @@ -39,6 +37,8 @@ import netscape.security.x509.OIDMap; import netscape.security.x509.X509CRLImpl; import netscape.security.x509.X509ExtensionException; +import com.netscape.cmsutil.util.Utils; + /** * The PrettyPrintCrl class is a utility program designed to "pretty print" * a CRL. It assumes that the name of a data file is passed to the @@ -72,13 +72,13 @@ public class PrettyPrintCrl { public static void main(String argv[]) { BufferedReader inputCrl = null; - String encodedBASE64CrlChunk = new String(); - String encodedBASE64Crl = new String(); + String encodedBASE64CrlChunk = ""; + String encodedBASE64Crl = ""; byte decodedBASE64Crl[] = null; X509CRLImpl crl = null; Locale aLocale = null; CrlPrettyPrint CrlDetails = null; - String pp = new String(); + String pp = ""; FileOutputStream outputCrl = null; // (1) Check that at least one argument was submitted to the program |