diff options
author | acolyer <acolyer> | 2005-11-25 19:12:27 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-11-25 19:12:27 +0000 |
commit | 78e8ecbd934a4fbfe6e2776b59a4045b0c3e8e80 (patch) | |
tree | 41d6b54f8c8dc6b1fc08ddd9020d20e9c8d90425 /aspectj5rt/java5-testsrc | |
parent | c860a8664600e46d5b78976a59125abf0bbc7f3c (diff) | |
download | aspectj-78e8ecbd934a4fbfe6e2776b59a4045b0c3e8e80.tar.gz aspectj-78e8ecbd934a4fbfe6e2776b59a4045b0c3e8e80.zip |
eliminates many warnings in the aspectj5rt package - 10 generic related warnings remain that I'm not sure how to eradicate!
Diffstat (limited to 'aspectj5rt/java5-testsrc')
-rw-r--r-- | aspectj5rt/java5-testsrc/org/aspectj/internal/lang/reflect/AjTypeTests.java | 2 | ||||
-rw-r--r-- | aspectj5rt/java5-testsrc/org/aspectj/internal/lang/reflect/AjTypeTestsWithAspects.java | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/aspectj5rt/java5-testsrc/org/aspectj/internal/lang/reflect/AjTypeTests.java b/aspectj5rt/java5-testsrc/org/aspectj/internal/lang/reflect/AjTypeTests.java index 211da98c3..f634d6c73 100644 --- a/aspectj5rt/java5-testsrc/org/aspectj/internal/lang/reflect/AjTypeTests.java +++ b/aspectj5rt/java5-testsrc/org/aspectj/internal/lang/reflect/AjTypeTests.java @@ -60,7 +60,7 @@ public class AjTypeTests extends TestCase { } public void testGetSupertype() { - Class stringSuper = String.class.getSuperclass(); + Class<?> stringSuper = String.class.getSuperclass(); AjType ajSuper = stringType.getSupertype(); assertEquals(AjTypeSystem.getAjType(stringSuper),ajSuper); } diff --git a/aspectj5rt/java5-testsrc/org/aspectj/internal/lang/reflect/AjTypeTestsWithAspects.java b/aspectj5rt/java5-testsrc/org/aspectj/internal/lang/reflect/AjTypeTestsWithAspects.java index 7b15d3e64..046733b82 100644 --- a/aspectj5rt/java5-testsrc/org/aspectj/internal/lang/reflect/AjTypeTestsWithAspects.java +++ b/aspectj5rt/java5-testsrc/org/aspectj/internal/lang/reflect/AjTypeTestsWithAspects.java @@ -42,7 +42,7 @@ import org.aspectj.lang.reflect.TypePatternBasedPerClause; public class AjTypeTestsWithAspects extends TestCase { - private AjType sa; + private AjType<SimpleAspect> sa; protected void setUp() throws Exception { super.setUp(); @@ -50,11 +50,11 @@ public class AjTypeTestsWithAspects extends TestCase { } public void testGetPerClause() { - AjType perThisA = AjTypeSystem.getAjType(PerThisAspect.class); - AjType perTargetA = AjTypeSystem.getAjType(PerTargetAspect.class); - AjType perCflowA = AjTypeSystem.getAjType(PerCflowAspect.class); - AjType perCflowbelowA = AjTypeSystem.getAjType(PerCflowbelowAspect.class); - AjType perTypeWithinA = AjTypeSystem.getAjType(PerTypeWithin.class); + AjType<PerThisAspect> perThisA = AjTypeSystem.getAjType(PerThisAspect.class); + AjType<PerTargetAspect> perTargetA = AjTypeSystem.getAjType(PerTargetAspect.class); + AjType<PerCflowAspect> perCflowA = AjTypeSystem.getAjType(PerCflowAspect.class); + AjType<PerCflowbelowAspect> perCflowbelowA = AjTypeSystem.getAjType(PerCflowbelowAspect.class); + AjType<PerTypeWithin> perTypeWithinA = AjTypeSystem.getAjType(PerTypeWithin.class); PerClause pc = perThisA.getPerClause(); assertEquals(PerClauseKind.PERTHIS,pc.getKind()); |