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/cms/authentication/FlatFileAuth.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'base/common/src/com/netscape/cms/authentication/FlatFileAuth.java') diff --git a/base/common/src/com/netscape/cms/authentication/FlatFileAuth.java b/base/common/src/com/netscape/cms/authentication/FlatFileAuth.java index 2394ede4c..81537f707 100644 --- a/base/common/src/com/netscape/cms/authentication/FlatFileAuth.java +++ b/base/common/src/com/netscape/cms/authentication/FlatFileAuth.java @@ -514,7 +514,7 @@ public class FlatFileAuth AuthToken authToken = new AuthToken(this); for (int i = 0; i < authAttrs.length; i++) { - String ffvalue = (String) user.get(authAttrs[i]); + String ffvalue = user.get(authAttrs[i]); String uservalue = (String) authCred.get(authAttrs[i]); // print("checking authentication token (" + authAttrs[i] + ": " + uservalue + " against ff value: " + ffvalue); @@ -589,7 +589,7 @@ public class FlatFileAuth // if a dn was specified in the password file for this user, // replace the requested dn with the one in the pwfile if (user != null) { - String dn = (String) user.get("dn"); + String dn = user.get("dn"); if (dn != null && authToken != null) { authToken.set(AuthToken.TOKEN_CERT_SUBJECT, dn); -- cgit