]> source.dussan.org Git - aspectj.git/commitdiff
minimalModel ON by default. demotion ON by default (for AJDT as well as LTW)
authoraclement <aclement>
Fri, 5 Aug 2011 16:23:28 +0000 (16:23 +0000)
committeraclement <aclement>
Fri, 5 Aug 2011 16:23:28 +0000 (16:23 +0000)
ajde/testsrc/org/aspectj/ajde/ExtensionTests.java

index f2fd49bcf637bb31088235992a3ea4307dd1ed54..0a445ba8ba796ca3eb597bb6fadd60398694282e 100644 (file)
@@ -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;