]> source.dussan.org Git - aspectj.git/commitdiff
these problematic casts are redundant... (135052)
authoraclement <aclement>
Thu, 6 Apr 2006 08:18:53 +0000 (08:18 +0000)
committeraclement <aclement>
Thu, 6 Apr 2006 08:18:53 +0000 (08:18 +0000)
weaver/src/org/aspectj/weaver/ResolvedType.java

index 798c00e20e3e5c26492b93954497451afa90de69..bfb7be4c5f543c695411d25a7d23aa311f3ae74e 100644 (file)
@@ -2080,7 +2080,7 @@ public abstract class ResolvedType extends UnresolvedType implements AnnotatedEl
 
        protected boolean ajMembersNeedParameterization() {
                if (isParameterizedType()) return true;
-               if (getSuperclass() != null) return ((ReferenceType)getSuperclass()).ajMembersNeedParameterization();
+               if (getSuperclass() != null) return getSuperclass().ajMembersNeedParameterization();
                return false;
        }
 
@@ -2088,7 +2088,7 @@ public abstract class ResolvedType extends UnresolvedType implements AnnotatedEl
                Map myMap = getMemberParameterizationMap();
                if (myMap.size() == 0) {
                        // might extend a parameterized aspect that we also need to consider...
-                       if (getSuperclass() != null) return ((ReferenceType)getSuperclass()).getAjMemberParameterizationMap();
+                       if (getSuperclass() != null) return getSuperclass().getAjMemberParameterizationMap();
                }
                return myMap;
        }