summaryrefslogtreecommitdiffstats
path: root/base/java-tools/src/com/netscape/cmstools/PrettyPrintCert.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/java-tools/src/com/netscape/cmstools/PrettyPrintCert.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/java-tools/src/com/netscape/cmstools/PrettyPrintCert.java')
-rw-r--r--base/java-tools/src/com/netscape/cmstools/PrettyPrintCert.java10
1 files changed, 5 insertions, 5 deletions
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;