summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/cms/servlet/base/CMSServlet.java
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-04-05 15:08:18 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-04-09 10:22:03 -0500
commit3f24e55923fc986af4c6a08b2b8d45704a905627 (patch)
tree716415853b5676b801f6707634305b59b9af8603 /base/common/src/com/netscape/cms/servlet/base/CMSServlet.java
parent7c7b9d023cd466c1771068badc020dab36beb553 (diff)
downloadpki-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/servlet/base/CMSServlet.java')
-rw-r--r--base/common/src/com/netscape/cms/servlet/base/CMSServlet.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/base/common/src/com/netscape/cms/servlet/base/CMSServlet.java b/base/common/src/com/netscape/cms/servlet/base/CMSServlet.java
index f1de3ce4a..97573d877 100644
--- a/base/common/src/com/netscape/cms/servlet/base/CMSServlet.java
+++ b/base/common/src/com/netscape/cms/servlet/base/CMSServlet.java
@@ -329,7 +329,7 @@ public abstract class CMSServlet extends HttpServlet {
Enumeration<CMSLoadTemplate> templs = mTemplates.elements();
while (templs.hasMoreElements()) {
- CMSLoadTemplate templ = (CMSLoadTemplate) templs.nextElement();
+ CMSLoadTemplate templ = templs.nextElement();
if (templ == null || templ.mPropName == null) {
continue;
@@ -495,16 +495,16 @@ public abstract class CMSServlet extends HttpServlet {
CMS.debug(CMS.DEBUG_INFORM, "CMSServlet: curDate="
+ endDate + " id=" + mId + " time=" + (endTime - startTime));
}
- iCommandQueue.unRegisterProccess((Object) cmsRequest, (Object) this);
+ iCommandQueue.unRegisterProccess(cmsRequest, this);
} catch (EBaseException e) {
- iCommandQueue.unRegisterProccess((Object) cmsRequest, (Object) this);
+ iCommandQueue.unRegisterProccess(cmsRequest, this);
// ByteArrayOutputStream os = new ByteArrayOutputStream(); for debugging only
// PrintStream ps = new PrintStream(os);
//e.printStackTrace(ps);
log(e.toString());
renderException(cmsRequest, e);
} catch (Exception ex) {
- iCommandQueue.unRegisterProccess((Object) cmsRequest, (Object) this);
+ iCommandQueue.unRegisterProccess(cmsRequest, this);
ByteArrayOutputStream os = new ByteArrayOutputStream();
PrintStream ps = new PrintStream(os);
@@ -554,7 +554,7 @@ public abstract class CMSServlet extends HttpServlet {
return;
Integer status = cmsReq.getStatus();
- CMSLoadTemplate ltempl = (CMSLoadTemplate) mTemplates.get(status);
+ CMSLoadTemplate ltempl = mTemplates.get(status);
if (ltempl == null || ltempl.mTemplateName == null) {
// result is previously outputed.
@@ -575,7 +575,7 @@ public abstract class CMSServlet extends HttpServlet {
if (argBlock != null) {
Enumeration<String> names = argBlock.getElements();
while (names.hasMoreElements()) {
- String name = (String) names.nextElement();
+ String name = names.nextElement();
String val = argBlock.get(name).toString();
val = val.trim();
xmlObj.addItemToContainer(argBlockContainer, name, val);
@@ -596,7 +596,7 @@ public abstract class CMSServlet extends HttpServlet {
Node recordsNode = xmlObj.createContainer(root, "records");
if (records != null) {
while (records.hasMoreElements()) {
- IArgBlock record = (IArgBlock) records.nextElement();
+ IArgBlock record = records.nextElement();
outputArgBlockAsXML(xmlObj, recordsNode, "record", record);
}
}
@@ -697,7 +697,7 @@ public abstract class CMSServlet extends HttpServlet {
try {
Locale[] locale = new Locale[1];
CMSLoadTemplate loadTempl =
- (CMSLoadTemplate) mTemplates.get(CMSRequest.EXCEPTION);
+ mTemplates.get(CMSRequest.EXCEPTION);
CMSTemplate template = getTemplate(loadTempl.mTemplateName,
cmsReq.getHttpReq(), locale);
ICMSTemplateFiller filler = loadTempl.mFiller;