Fix several generics warnings.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@898090 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adam Heath
2010-01-11 22:21:12 +00:00
parent 5119c6e181
commit eb0f0bfb16
12 changed files with 37 additions and 30 deletions
@@ -226,7 +226,7 @@ public class SeleniumXml {
public void runCommands() throws TestCaseException {
Element root = this.doc.getRootElement();
List<Element> nodes = root.getChildren();
List<Element> nodes = UtilGenerics.cast(root.getChildren());
runCommands(nodes);
}
@@ -502,11 +502,11 @@ public class SeleniumXml {
public void ifCmd(Element elem) throws TestCaseException {
String isRun = replaceParam(elem.getAttributeValue("condition"));
if (isRun != null && !isRun.equals("") && Boolean.valueOf(isRun)) {
List <Element> children = elem.getChildren();
List <Element> children = UtilGenerics.cast(elem.getChildren());
this.runCommands(children);
}else{
Element child = elem.getChild("else");
List <Element> children = child.getChildren();
List <Element> children = UtilGenerics.cast(child.getChildren());
this.runCommands(children);
}
}
@@ -514,7 +514,7 @@ public class SeleniumXml {
public void partialRunDependency(Element elem) throws TestCaseException {
String isRun = replaceParam(elem.getAttributeValue("isRun"));
if (isRun != null && Boolean.valueOf(isRun)) {
List <Element> children = elem.getChildren();
List <Element> children = UtilGenerics.cast(elem.getChildren());
this.runCommands(children);
}
}