summaryrefslogtreecommitdiffstats
path: root/ajde/testsrc/org
diff options
context:
space:
mode:
authoraclement <aclement>2011-08-05 16:23:28 +0000
committeraclement <aclement>2011-08-05 16:23:28 +0000
commit4679b001323a7836a0935ec3a09c4bb40b3f5c57 (patch)
tree4ca190a3ec651c7d23c55518351137b4e7539cba /ajde/testsrc/org
parenta53143e61fffa71f497de40bbc6a5627a46a3a33 (diff)
downloadaspectj-4679b001323a7836a0935ec3a09c4bb40b3f5c57.tar.gz
aspectj-4679b001323a7836a0935ec3a09c4bb40b3f5c57.zip
minimalModel ON by default. demotion ON by default (for AJDT as well as LTW)
Diffstat (limited to 'ajde/testsrc/org')
-rw-r--r--ajde/testsrc/org/aspectj/ajde/ExtensionTests.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/ajde/testsrc/org/aspectj/ajde/ExtensionTests.java b/ajde/testsrc/org/aspectj/ajde/ExtensionTests.java
index f2fd49bcf..0a445ba8b 100644
--- a/ajde/testsrc/org/aspectj/ajde/ExtensionTests.java
+++ b/ajde/testsrc/org/aspectj/ajde/ExtensionTests.java
@@ -49,12 +49,12 @@ public class ExtensionTests extends AjcTestCase {
CompilationResult result = ajc(baseDir, args);
List l = result.getWarningMessages();
IMessage m = ((IMessage) l.get(0));
- assertTrue("Expected ID of message to be " + IProblem.UnusedImport + " (UnusedImport) but found an ID of " + m.getID(), m
- .getID() == IProblem.UnusedImport);
+ assertTrue("Expected ID of message to be " + IProblem.UnusedImport + " (UnusedImport) but found an ID of " + m.getID(),
+ m.getID() == IProblem.UnusedImport);
}
public void testInnerClassesInASM() {
- String[] args = new String[] { "InnerClasses.java", "-emacssym" };
+ String[] args = new String[] { "InnerClasses.java", "-emacssym", "-Xset:minimalModel=false" };
CompilationResult result = ajc(baseDir, args);
/* List l = */result.getWarningMessages();
/* Properties p = */AsmManager.lastActiveStructureModel.summarizeModel().getProperties();
@@ -77,8 +77,8 @@ public class ExtensionTests extends AjcTestCase {
}
private IProgramElement getChild(IProgramElement parent, String s) {
- List kids = parent.getChildren();
- for (Iterator iter = kids.iterator(); iter.hasNext();) {
+ List<IProgramElement> kids = parent.getChildren();
+ for (Iterator<IProgramElement> iter = kids.iterator(); iter.hasNext();) {
IProgramElement element = (IProgramElement) iter.next();
if (element.getName().indexOf(s) != -1)
return element;