summaryrefslogtreecommitdiffstats
path: root/base/java-tools/src/com/netscape/cmstools/CMCRequest.java
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-04-05 15:08:18 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-04-09 10:22:03 -0500
commit3f24e55923fc986af4c6a08b2b8d45704a905627 (patch)
tree716415853b5676b801f6707634305b59b9af8603 /base/java-tools/src/com/netscape/cmstools/CMCRequest.java
parent7c7b9d023cd466c1771068badc020dab36beb553 (diff)
downloadpki-3f24e55923fc986af4c6a08b2b8d45704a905627.tar.gz
pki-3f24e55923fc986af4c6a08b2b8d45704a905627.tar.xz
pki-3f24e55923fc986af4c6a08b2b8d45704a905627.zip
Removed unnecessary type casts.
Unnecessary type casts have been removed using Eclipse Quick Fix. Ticket #134
Diffstat (limited to 'base/java-tools/src/com/netscape/cmstools/CMCRequest.java')
-rw-r--r--base/java-tools/src/com/netscape/cmstools/CMCRequest.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/base/java-tools/src/com/netscape/cmstools/CMCRequest.java b/base/java-tools/src/com/netscape/cmstools/CMCRequest.java
index f77bc039d..1dfb36fb2 100644
--- a/base/java-tools/src/com/netscape/cmstools/CMCRequest.java
+++ b/base/java-tools/src/com/netscape/cmstools/CMCRequest.java
@@ -26,7 +26,6 @@ import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
-import java.io.OutputStream;
import java.io.PrintStream;
import java.math.BigInteger;
import java.security.MessageDigest;
@@ -259,7 +258,7 @@ public class CMCRequest {
ByteArrayOutputStream ostream = new ByteArrayOutputStream();
- pkidata.encode((OutputStream) ostream);
+ pkidata.encode(ostream);
digest = SHADigest.digest(ostream.toByteArray());
} catch (NoSuchAlgorithmException e) {
}
@@ -444,7 +443,7 @@ public class CMCRequest {
StringTokenizer tokenizer = new StringTokenizer(bodyPartIDs, " ");
SEQUENCE bodyList = new SEQUENCE();
while (tokenizer.hasMoreTokens()) {
- String s = (String) tokenizer.nextToken();
+ String s = tokenizer.nextToken();
bodyList.addElement(new INTEGER(s));
}
LraPopWitness lra = new LraPopWitness(new INTEGER(0), bodyList);
@@ -602,7 +601,7 @@ public class CMCRequest {
ByteArrayOutputStream ostream = new ByteArrayOutputStream();
- revRequestControl.encode((OutputStream) ostream);
+ revRequestControl.encode(ostream);
rdigest = rSHADigest.digest(ostream.toByteArray());
} catch (NoSuchAlgorithmException e) {
}
@@ -942,7 +941,7 @@ public class CMCRequest {
StringTokenizer tokenizer = new StringTokenizer(ifilename, " ");
String[] ifiles = new String[num];
for (int i = 0; i < num; i++) {
- String ss = (String) tokenizer.nextToken();
+ String ss = tokenizer.nextToken();
ifiles[i] = ss;
if (ss == null) {
System.out.println("Missing input file for the request.");