From 8a64fa2912ac02aadcf5f164dfde17a7c48877a5 Mon Sep 17 00:00:00 2001 From: acolyer Date: Thu, 21 Oct 2004 13:40:23 +0000 Subject: [PATCH] Bugzilla Bug 73895 unnecessary cast causing problems --- weaver/src/org/aspectj/weaver/ResolvedTypeX.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weaver/src/org/aspectj/weaver/ResolvedTypeX.java b/weaver/src/org/aspectj/weaver/ResolvedTypeX.java index fb81c5a7f..4342ce4fc 100644 --- a/weaver/src/org/aspectj/weaver/ResolvedTypeX.java +++ b/weaver/src/org/aspectj/weaver/ResolvedTypeX.java @@ -550,7 +550,7 @@ public abstract class ResolvedTypeX extends TypeX { } // ??? needs to be Methods, not just declared methods? JLS 5.5 unclear ResolvedMember[] a = getDeclaredMethods(); - ResolvedMember[] b = ((Name)other).getDeclaredMethods(); //??? is this cast always safe + ResolvedMember[] b = other.getDeclaredMethods(); //??? is this cast always safe for (int ai = 0, alen = a.length; ai < alen; ai++) { for (int bi = 0, blen = b.length; bi < blen; bi++) { if (! b[bi].isCompatibleWith(a[ai])) return false; -- 2.39.5