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/common/src/com/netscape/cms/profile/def/GenericExtDefault.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/common/src/com/netscape/cms/profile/def/GenericExtDefault.java')
-rw-r--r-- | base/common/src/com/netscape/cms/profile/def/GenericExtDefault.java | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/base/common/src/com/netscape/cms/profile/def/GenericExtDefault.java b/base/common/src/com/netscape/cms/profile/def/GenericExtDefault.java index d5d88c29e..4a8acace1 100644 --- a/base/common/src/com/netscape/cms/profile/def/GenericExtDefault.java +++ b/base/common/src/com/netscape/cms/profile/def/GenericExtDefault.java @@ -109,24 +109,21 @@ public class GenericExtDefault extends EnrollExtDefault { ObjectIdentifier oid = new ObjectIdentifier(getConfig(CONFIG_OID)); - ext = (Extension) - getExtension(oid.toString(), info); + ext = getExtension(oid.toString(), info); if (ext == null) { populate(null, info); } if (name.equals(VAL_CRITICAL)) { - ext = (Extension) - getExtension(oid.toString(), info); + ext = getExtension(oid.toString(), info); if (ext == null) { return; } boolean val = Boolean.valueOf(value).booleanValue(); ext.setCritical(val); } else if (name.equals(VAL_DATA)) { - ext = (Extension) - getExtension(oid.toString(), info); + ext = getExtension(oid.toString(), info); if (ext == null) { return; } @@ -155,8 +152,7 @@ public class GenericExtDefault extends EnrollExtDefault { ObjectIdentifier oid = new ObjectIdentifier(getConfig(CONFIG_OID)); - ext = (Extension) - getExtension(oid.toString(), info); + ext = getExtension(oid.toString(), info); if (ext == null) { try { @@ -171,8 +167,7 @@ public class GenericExtDefault extends EnrollExtDefault { if (name.equals(VAL_CRITICAL)) { - ext = (Extension) - getExtension(oid.toString(), info); + ext = getExtension(oid.toString(), info); if (ext == null) { return null; @@ -184,8 +179,7 @@ public class GenericExtDefault extends EnrollExtDefault { } } else if (name.equals(VAL_DATA)) { - ext = (Extension) - getExtension(oid.toString(), info); + ext = getExtension(oid.toString(), info); if (ext == null) return ""; @@ -218,7 +212,7 @@ public class GenericExtDefault extends EnrollExtDefault { if ((data[i] & 0xff) < 16) { b.append("0"); } - b.append(Integer.toString((int) (data[i] & 0xff), 0x10)); + b.append(Integer.toString((data[i] & 0xff), 0x10)); } return b.toString(); } |