diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-04-05 15:08:18 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-04-09 10:22:03 -0500 |
commit | 3f24e55923fc986af4c6a08b2b8d45704a905627 (patch) | |
tree | 716415853b5676b801f6707634305b59b9af8603 /base/common/src/com/netscape/cmscore/base | |
parent | 7c7b9d023cd466c1771068badc020dab36beb553 (diff) | |
download | pki-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/common/src/com/netscape/cmscore/base')
-rw-r--r-- | base/common/src/com/netscape/cmscore/base/FileConfigStore.java | 12 | ||||
-rw-r--r-- | base/common/src/com/netscape/cmscore/base/PropConfigStore.java | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/base/common/src/com/netscape/cmscore/base/FileConfigStore.java b/base/common/src/com/netscape/cmscore/base/FileConfigStore.java index 393547f53..a91acdbcb 100644 --- a/base/common/src/com/netscape/cmscore/base/FileConfigStore.java +++ b/base/common/src/com/netscape/cmscore/base/FileConfigStore.java @@ -181,15 +181,15 @@ public class FileConfigStore extends PropConfigStore implements // sorting them lexicographically while (v.size() > 0) { - String pname = (String) v.firstElement(); + String pname = v.firstElement(); int j = 0; for (int i = 1; i < v.size(); i++) { - String s = (String) v.elementAt(i); + String s = v.elementAt(i); if (pname.compareTo(s) > 0) { j = i; - pname = (String) v.elementAt(i); + pname = v.elementAt(i); } } v.removeElementAt(j); @@ -203,15 +203,15 @@ public class FileConfigStore extends PropConfigStore implements v.addElement(e1.nextElement()); } while (v.size() > 0) { - String pname = (String) v.firstElement(); + String pname = v.firstElement(); int j = 0; for (int i = 1; i < v.size(); i++) { - String s = (String) v.elementAt(i); + String s = v.elementAt(i); if (pname.compareTo(s) > 0) { j = i; - pname = (String) v.elementAt(i); + pname = v.elementAt(i); } } v.removeElementAt(j); diff --git a/base/common/src/com/netscape/cmscore/base/PropConfigStore.java b/base/common/src/com/netscape/cmscore/base/PropConfigStore.java index ee4370053..075d4be78 100644 --- a/base/common/src/com/netscape/cmscore/base/PropConfigStore.java +++ b/base/common/src/com/netscape/cmscore/base/PropConfigStore.java @@ -334,7 +334,7 @@ public class PropConfigStore implements IConfigStore, Cloneable { */ public byte[] getByteArray(String name, byte defval[]) throws EBaseException { - String str = (String) get(name); + String str = get(name); if (str == null || str.length() == 0) { CMS.traceHashKey(mDebugType, getFullName(name), @@ -379,7 +379,7 @@ public class PropConfigStore implements IConfigStore, Cloneable { * @exception EBaseException failed to retrieve */ public boolean getBoolean(String name) throws EBaseException { - String value = (String) get(name); + String value = get(name); if (value == null) { CMS.traceHashKey(mDebugType, getFullName(name), "<notpresent>"); @@ -445,7 +445,7 @@ public class PropConfigStore implements IConfigStore, Cloneable { * @exception EBaseException failed to retrieve value */ public int getInteger(String name) throws EBaseException { - String value = (String) get(name); + String value = get(name); if (value == null) { CMS.traceHashKey(mDebugType, getFullName(name), "<notpresent>"); @@ -505,7 +505,7 @@ public class PropConfigStore implements IConfigStore, Cloneable { * @exception EBaseException failed to retrieve value */ public BigInteger getBigInteger(String name) throws EBaseException { - String value = (String) get(name); + String value = get(name); if (value == null) { CMS.traceHashKey(mDebugType, getFullName(name), "<notpresent>"); |