From: aclement Date: Sat, 17 Jan 2009 01:48:44 +0000 (+0000) Subject: remove unnecessary casts X-Git-Tag: pre268419~220 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=83e8e800adaf24c52b03d681fcf75426a00ec814;p=aspectj.git remove unnecessary casts --- diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/CrosscuttingMembers.java b/org.aspectj.matcher/src/org/aspectj/weaver/CrosscuttingMembers.java index a71512f13..b33e4801c 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/CrosscuttingMembers.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/CrosscuttingMembers.java @@ -353,10 +353,10 @@ public class CrosscuttingMembers { boolean shouldOverwriteThis = false; boolean foundInequality = false; for (Iterator iter = theseTypeMungers.iterator(); iter.hasNext() && !foundInequality;) { - Object thisOne = (Object) iter.next(); + Object thisOne = iter.next(); boolean foundInOtherSet = false; for (Iterator iterator = otherTypeMungers.iterator(); iterator.hasNext();) { - Object otherOne = (Object) iterator.next(); + Object otherOne = iterator.next(); if (thisOne instanceof ConcreteTypeMunger) { if (((ConcreteTypeMunger) thisOne).shouldOverwrite()) { shouldOverwriteThis = true;