From 3f24e55923fc986af4c6a08b2b8d45704a905627 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Thu, 5 Apr 2012 15:08:18 -0500 Subject: Removed unnecessary type casts. Unnecessary type casts have been removed using Eclipse Quick Fix. Ticket #134 --- base/common/src/com/netscape/certsrv/profile/CertInfoProfile.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'base/common/src/com/netscape/certsrv/profile') diff --git a/base/common/src/com/netscape/certsrv/profile/CertInfoProfile.java b/base/common/src/com/netscape/certsrv/profile/CertInfoProfile.java index 5c192e9cd..38379c283 100644 --- a/base/common/src/com/netscape/certsrv/profile/CertInfoProfile.java +++ b/base/common/src/com/netscape/certsrv/profile/CertInfoProfile.java @@ -43,7 +43,7 @@ public class CertInfoProfile { mProfileSetIDMapping = config.getString("profileSetIDMapping"); StringTokenizer st = new StringTokenizer(config.getString("list"), ","); while (st.hasMoreTokens()) { - String id = (String) st.nextToken(); + String id = st.nextToken(); String c = config.getString(id + ".default.class"); try { /* load defaults */ @@ -89,8 +89,7 @@ public class CertInfoProfile { public void populate(X509CertInfo info) { Enumeration e1 = mDefaults.elements(); while (e1.hasMoreElements()) { - ICertInfoPolicyDefault def = - (ICertInfoPolicyDefault) e1.nextElement(); + ICertInfoPolicyDefault def = e1.nextElement(); try { def.populate(null /* request */, info); } catch (Exception e) { -- cgit