diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-04-05 15:08:18 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-04-09 10:22:03 -0500 |
commit | 3f24e55923fc986af4c6a08b2b8d45704a905627 (patch) | |
tree | 716415853b5676b801f6707634305b59b9af8603 /base/kra/src/com/netscape/kra/KeyRecoveryAuthority.java | |
parent | 7c7b9d023cd466c1771068badc020dab36beb553 (diff) | |
download | pki-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/kra/src/com/netscape/kra/KeyRecoveryAuthority.java')
-rw-r--r-- | base/kra/src/com/netscape/kra/KeyRecoveryAuthority.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/base/kra/src/com/netscape/kra/KeyRecoveryAuthority.java b/base/kra/src/com/netscape/kra/KeyRecoveryAuthority.java index 41b5fdae8..09f765877 100644 --- a/base/kra/src/com/netscape/kra/KeyRecoveryAuthority.java +++ b/base/kra/src/com/netscape/kra/KeyRecoveryAuthority.java @@ -608,7 +608,7 @@ public class KeyRecoveryAuthority implements IAuthority, IKeyService, IKeyRecove public Hashtable<String, Object> getRecoveryParams(String recoveryID) throws EBaseException { - return (Hashtable<String, Object>) mRecoveryParams.get(recoveryID); + return mRecoveryParams.get(recoveryID); } public void createPk12(String recoveryID, byte[] pk12) @@ -658,7 +658,7 @@ public class KeyRecoveryAuthority implements IAuthority, IKeyService, IKeyRecove Hashtable<String, Object> h = getRecoveryParams(recoveryID); @SuppressWarnings("unchecked") Vector<Credential> dc = (Vector<Credential>) h.get(PARAM_CREDS); - Object lock = (Object) h.get(PARAM_LOCK); + Object lock = h.get(PARAM_LOCK); synchronized (lock) { while (dc.size() < getNoOfRequiredAgents()) { @@ -712,7 +712,7 @@ public class KeyRecoveryAuthority implements IAuthority, IKeyService, IKeyRecove Hashtable<String, Object> h = getRecoveryParams(recoveryID); @SuppressWarnings("unchecked") Vector<Credential> dc = (Vector<Credential>) h.get(PARAM_CREDS); - Object lock = (Object) h.get(PARAM_LOCK); + Object lock = h.get(PARAM_LOCK); synchronized (lock) { verifyCredential(dc, uid, pwd); @@ -1500,7 +1500,7 @@ public class KeyRecoveryAuthority implements IAuthority, IKeyService, IKeyRecove } public Hashtable<String, Object> getVolatileRequest(RequestId id) { - return (Hashtable<String, Object>) mVolatileRequests.get(id.toString()); + return mVolatileRequests.get(id.toString()); } public void destroyVolatileRequest(RequestId id) { |