summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/cmscore/base
diff options
context:
space:
mode:
Diffstat (limited to 'base/common/src/com/netscape/cmscore/base')
-rw-r--r--base/common/src/com/netscape/cmscore/base/FileConfigStore.java12
-rw-r--r--base/common/src/com/netscape/cmscore/base/PropConfigStore.java8
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>");