]> source.dussan.org Git - aspectj.git/commitdiff
changing a generics cast - the eclipse compiler liked it, but javac on the build...
authoracolyer <acolyer>
Mon, 28 Nov 2005 10:50:20 +0000 (10:50 +0000)
committeracolyer <acolyer>
Mon, 28 Nov 2005 10:50:20 +0000 (10:50 +0000)
aspectj5rt/java5-src/org/aspectj/lang/reflect/AjTypeSystem.java

index 737abc1b613a8aca4b3e952b5e269b9eed1805f5..93ba5cc6f17142e3b71d1a7bc6003d3c128bad98 100644 (file)
@@ -35,7 +35,7 @@ public class AjTypeSystem {
                 */
                public static <T> AjType<T> getAjType(Class<T> fromClass) {
                        if (ajTypes.containsKey(fromClass)) {
-                               WeakReference<AjType<T>> weakRefToAjType = (WeakReference<AjType<T>>) ajTypes.get(fromClass);
+                               WeakReference<AjType> weakRefToAjType =  ajTypes.get(fromClass);
                                AjType<T> theAjType = weakRefToAjType.get();
                                if (theAjType != null) {
                                        return theAjType;