From e43bcdd6a0ff7f4e10b749770d62bc481c6f5de4 Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 12 Aug 2011 17:53:46 +0000 Subject: [PATCH] 239649 and primitives no longer all resolved by default --- .../harness/bridge/AbstractRunSpec.java | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/testing/src/org/aspectj/testing/harness/bridge/AbstractRunSpec.java b/testing/src/org/aspectj/testing/harness/bridge/AbstractRunSpec.java index 64b136994..f3d260028 100644 --- a/testing/src/org/aspectj/testing/harness/bridge/AbstractRunSpec.java +++ b/testing/src/org/aspectj/testing/harness/bridge/AbstractRunSpec.java @@ -88,7 +88,7 @@ abstract public class AbstractRunSpec implements IRunSpec { protected final ArrayList options; protected final ArrayList paths; // XXXXXunused protected final ArrayList /*ISourceLocation*/ sourceLocations; // XXX remove? - protected final ArrayList /* IRunSpec */children; + protected final ArrayList children; protected final ArrayList /* DirChanges.Spec */dirChanges; protected XMLNames xmlNames; protected String comment; @@ -112,8 +112,8 @@ abstract public class AbstractRunSpec implements IRunSpec { options = new ArrayList(); paths = new ArrayList(); // XXXXXunused sourceLocations = new ArrayList(); - keywords = new ArrayList(); - children = new ArrayList(); + keywords = new ArrayList(); + children = new ArrayList(); dirChanges = new ArrayList(); xmlNames = XMLNames.DEFAULT; runtime = new RT(); @@ -197,14 +197,14 @@ abstract public class AbstractRunSpec implements IRunSpec { } } - public ArrayList getKeywordsList() { + public ArrayList getKeywordsList() { return makeList(keywords); } // ------- options - String args /** @return ArrayList of String options */ - public ArrayList getOptionsList() { + public ArrayList getOptionsList() { return makeList(options); } @@ -365,22 +365,22 @@ abstract public class AbstractRunSpec implements IRunSpec { } /** @return copy of children list */ - public ArrayList getChildren() { + public ArrayList getChildren() { return makeList(children); } /** @return copy of children list without children to skip */ - public ArrayList getWorkingChildren() { + public ArrayList getWorkingChildren() { if (skipAll) { - return new ArrayList(); + return new ArrayList(); } if (null == skipSet) { return getChildren(); } - ArrayList result = new ArrayList(); + ArrayList result = new ArrayList(); int i = 0; - for (Iterator iter = children.listIterator(); iter.hasNext(); i++) { - Object child = iter.next(); + for (Iterator iter = children.listIterator(); iter.hasNext(); i++) { + IRunSpec child = iter.next(); if (!skipSet.get(i)) { result.add(child); } @@ -646,9 +646,9 @@ abstract public class AbstractRunSpec implements IRunSpec { */ spec.badInput = badInput; spec.children.clear(); - for (Iterator iter = children.iterator(); iter.hasNext();) { + for (Iterator iter = children.iterator(); iter.hasNext();) { // clone these... - IRunSpec child = (IRunSpec) iter.next(); + IRunSpec child = iter.next(); // require all child classes to support clone? if (child instanceof AbstractRunSpec) { spec.addChild((AbstractRunSpec) ((AbstractRunSpec) child).clone()); @@ -700,8 +700,8 @@ abstract public class AbstractRunSpec implements IRunSpec { } } - private ArrayList makeList(List list) { - ArrayList result = new ArrayList(); + private ArrayList makeList(List list) { + ArrayList result = new ArrayList(); if (null != list) { result.addAll(list); } -- 2.39.5