summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/cmscore/profile
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/common/src/com/netscape/cmscore/profile
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/common/src/com/netscape/cmscore/profile')
-rw-r--r--base/common/src/com/netscape/cmscore/profile/ProfileSubsystem.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/base/common/src/com/netscape/cmscore/profile/ProfileSubsystem.java b/base/common/src/com/netscape/cmscore/profile/ProfileSubsystem.java
index 54f54e009..6fecf8810 100644
--- a/base/common/src/com/netscape/cmscore/profile/ProfileSubsystem.java
+++ b/base/common/src/com/netscape/cmscore/profile/ProfileSubsystem.java
@@ -91,7 +91,7 @@ public class ProfileSubsystem implements IProfileSubsystem {
StringTokenizer st = new StringTokenizer(ids, ",");
while (st.hasMoreTokens()) {
- String id = (String) st.nextToken();
+ String id = st.nextToken();
IConfigStore subStore = config.getSubStore(id);
String classid = subStore.getString(PROP_CLASS_ID);
IPluginInfo info = registry.getPluginInfo("profile", classid);
@@ -107,7 +107,7 @@ public class ProfileSubsystem implements IProfileSubsystem {
Enumeration<String> ee = getProfileIds();
while (ee.hasMoreElements()) {
- String id = (String) ee.nextElement();
+ String id = ee.nextElement();
CMS.debug("Registered Confirmation - " + id);
}
@@ -156,7 +156,7 @@ public class ProfileSubsystem implements IProfileSubsystem {
String list = "";
while (tokenizer.hasMoreTokens()) {
- String element = (String) tokenizer.nextToken();
+ String element = tokenizer.nextToken();
if (!element.equals(id)) {
list = list + element + ",";
@@ -235,7 +235,7 @@ public class ProfileSubsystem implements IProfileSubsystem {
}
public boolean isProfileEnable(String id) {
- IProfile profile = (IProfile) mProfiles.get(id);
+ IProfile profile = mProfiles.get(id);
String enable = null;
try {
@@ -266,7 +266,7 @@ public class ProfileSubsystem implements IProfileSubsystem {
*/
public void enableProfile(String id, String enableBy)
throws EProfileException {
- IProfile profile = (IProfile) mProfiles.get(id);
+ IProfile profile = mProfiles.get(id);
profile.getConfigStore().putString(PROP_ENABLE, "true");
profile.getConfigStore().putString(PROP_ENABLE_BY, enableBy);
@@ -281,7 +281,7 @@ public class ProfileSubsystem implements IProfileSubsystem {
*/
public void disableProfile(String id)
throws EProfileException {
- IProfile profile = (IProfile) mProfiles.get(id);
+ IProfile profile = mProfiles.get(id);
profile.getConfigStore().putString(PROP_ENABLE, "false");
try {