From: aclement Date: Thu, 6 Apr 2006 08:18:53 +0000 (+0000) Subject: these problematic casts are redundant... (135052) X-Git-Tag: V1_5_1a_final~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e9a7c5036c3f5b68ba55e7b5ba56db27ee31149e;p=aspectj.git these problematic casts are redundant... (135052) --- diff --git a/weaver/src/org/aspectj/weaver/ResolvedType.java b/weaver/src/org/aspectj/weaver/ResolvedType.java index 798c00e20..bfb7be4c5 100644 --- a/weaver/src/org/aspectj/weaver/ResolvedType.java +++ b/weaver/src/org/aspectj/weaver/ResolvedType.java @@ -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; }