summaryrefslogtreecommitdiffstats
path: root/base/migrate
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/migrate
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/migrate')
-rw-r--r--base/migrate/80/MigrateSecurityDomain.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/base/migrate/80/MigrateSecurityDomain.java b/base/migrate/80/MigrateSecurityDomain.java
index 32dca511d..09fdb28aa 100644
--- a/base/migrate/80/MigrateSecurityDomain.java
+++ b/base/migrate/80/MigrateSecurityDomain.java
@@ -192,17 +192,17 @@ public class MigrateSecurityDomain {
Vector<String> v_host = parser.getValuesFromContainer(nodeList.item(i), "Host");
Vector<String> v_port = parser.getValuesFromContainer(nodeList.item(i), "SecurePort");
- String cn = (String) v_host.elementAt(0) + ":" + (String) v_port.elementAt(0);
+ String cn = v_host.elementAt(0) + ":" + v_port.elementAt(0);
String dn = "cn=" + cn + ",cn=" + type + "List,ou=Security Domain," + basedn;
LDAPEntry entry = null;
LDAPAttributeSet attrs = null;
attrs = new LDAPAttributeSet();
attrs.add(new LDAPAttribute("objectclass", "top"));
attrs.add(new LDAPAttribute("objectclass", "pkiSubsystem"));
- attrs.add(new LDAPAttribute("Host", (String) v_host.elementAt(0)));
- attrs.add(new LDAPAttribute("SecurePort", (String) v_port.elementAt(0)));
- attrs.add(new LDAPAttribute("Clone", (String) v_clone.elementAt(0)));
- attrs.add(new LDAPAttribute("SubsystemName", (String) v_name.elementAt(0)));
+ attrs.add(new LDAPAttribute("Host", v_host.elementAt(0)));
+ attrs.add(new LDAPAttribute("SecurePort", v_port.elementAt(0)));
+ attrs.add(new LDAPAttribute("Clone", v_clone.elementAt(0)));
+ attrs.add(new LDAPAttribute("SubsystemName", v_name.elementAt(0)));
attrs.add(new LDAPAttribute("cn", cn));
attrs.add(new LDAPAttribute("DomainManager", "true"));
// Since the initial port separation feature didn't occur
@@ -210,8 +210,8 @@ public class MigrateSecurityDomain {
// value for BOTH the "SecureAgentPort" and the
// "SecureAdminPort", and DON'T store any values for the
// "UnSecurePort"
- attrs.add(new LDAPAttribute("SecureAgentPort", (String) v_port.elementAt(0)));
- attrs.add(new LDAPAttribute("SecureAdminPort", (String) v_port.elementAt(0)));
+ attrs.add(new LDAPAttribute("SecureAgentPort", v_port.elementAt(0)));
+ attrs.add(new LDAPAttribute("SecureAdminPort", v_port.elementAt(0)));
entry = new LDAPEntry(dn, attrs);
try {