]> source.dussan.org Git - aspectj.git/commitdiff
polish
authorAndy Clement <aclement@gopivotal.com>
Fri, 4 Apr 2014 18:58:06 +0000 (11:58 -0700)
committerAndy Clement <aclement@gopivotal.com>
Fri, 4 Apr 2014 18:58:06 +0000 (11:58 -0700)
tests/src/org/aspectj/systemtest/ajc150/DeclareAnnotationTests.java

index a5d0b7d8bbdb5e2ce5ac7bebb08848ad087072d5..6ccca0e1558bcc211fde310fdf099ee4f3638fe8 100644 (file)
@@ -18,6 +18,7 @@ import junit.framework.Test;
 import org.aspectj.asm.AsmManager;
 import org.aspectj.asm.IHierarchy;
 import org.aspectj.asm.IProgramElement;
+import org.aspectj.asm.IRelationship;
 import org.aspectj.testing.XMLBasedAjcTestCase;
 
 public class DeclareAnnotationTests extends XMLBasedAjcTestCase {
@@ -299,7 +300,7 @@ public class DeclareAnnotationTests extends XMLBasedAjcTestCase {
                                        "declare @type: p.q.DeathByAnnotations : @Colored(\"red\")");
                        assertTrue("Couldn't find 'declare @type' element in the tree", ipe != null);
 
-                       List l = AsmManager.lastActiveStructureModel.getRelationshipMap().get(ipe);
+                       List<IRelationship> l = AsmManager.lastActiveStructureModel.getRelationshipMap().get(ipe);
                        assertTrue("Should have a relationship but does not ", l != null && l.size() > 0);
 
                        ipe = top.findElementForLabel(top.getRoot(), IProgramElement.Kind.DECLARE_ANNOTATION_AT_METHOD,