From 4679b001323a7836a0935ec3a09c4bb40b3f5c57 Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 5 Aug 2011 16:23:28 +0000 Subject: [PATCH] minimalModel ON by default. demotion ON by default (for AJDT as well as LTW) --- ajde/testsrc/org/aspectj/ajde/ExtensionTests.java | 10 +++++----- 1 file 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 kids = parent.getChildren(); + for (Iterator iter = kids.iterator(); iter.hasNext();) { IProgramElement element = (IProgramElement) iter.next(); if (element.getName().indexOf(s) != -1) return element; -- 2.39.5