java/code/src/com/redhat/rhn/frontend/action/kickstart/KickstartScriptOrderAction.java |
6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 6b2c5abecc4b2c6d9e0f1acfa18dc2a6e96642a0
Author: Tomas Lestach <tlestach(a)redhat.com>
Date: Mon Nov 4 14:33:45 2013 +0100
removing unnecessary casts
diff --git
a/java/code/src/com/redhat/rhn/frontend/action/kickstart/KickstartScriptOrderAction.java
b/java/code/src/com/redhat/rhn/frontend/action/kickstart/KickstartScriptOrderAction.java
index b220917..87e5ec6 100644
---
a/java/code/src/com/redhat/rhn/frontend/action/kickstart/KickstartScriptOrderAction.java
+++
b/java/code/src/com/redhat/rhn/frontend/action/kickstart/KickstartScriptOrderAction.java
@@ -91,13 +91,13 @@ public class KickstartScriptOrderAction extends
RhnLookupDispatchAction {
}
if (!preScripts.isEmpty()) {
if (StringUtils.isEmpty((String) formIn.get(SELECTED_PRE))) {
- String selected = ((LabelValueBean) preScripts.get(0)).getLabel();
+ String selected = preScripts.get(0).getLabel();
formIn.set(SELECTED_PRE, selected);
}
}
if (!postScripts.isEmpty()) {
if (StringUtils.isEmpty((String) formIn.get(SELECTED_POST))) {
- String selected = ((LabelValueBean) postScripts.get(0)).getLabel();
+ String selected = postScripts.get(0).getLabel();
formIn.set(SELECTED_POST, selected);
}
}
@@ -145,7 +145,7 @@ public class KickstartScriptOrderAction extends
RhnLookupDispatchAction {
DynaActionForm form = (DynaActionForm) formIn;
// if its not javascript enabled, can't do much report error
if (!context.isJavaScriptEnabled()) {
- return handleNoScript(mapping, (DynaActionForm) formIn, request, response);
+ return handleNoScript(mapping, formIn, request, response);
}
Set<KickstartScript> scripts = ksdata.getScripts();
Show replies by date