summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/cms/profile/def/GenericExtDefault.java
diff options
context:
space:
mode:
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.java20
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();
}