From: aclement Date: Mon, 2 Nov 2009 16:50:50 +0000 (+0000) Subject: generics X-Git-Tag: V1_6_7~173 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f865a36a7b9a79d0a56b2f7645df73d3949dc258;p=aspectj.git generics --- diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java b/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java index 575234d60..1743be01d 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java @@ -555,11 +555,10 @@ class BcelClassWeaver implements IClassWeaver { } // tidyup, reduce ongoing memory usage of BcelMethods that hang around - for (Iterator i = methodGens.iterator(); i.hasNext();) { - LazyMethodGen mg = (LazyMethodGen) i.next(); - BcelMethod bM = mg.getMemberView(); - if (bM != null) { - bM.wipeJoinpointSignatures(); + for (LazyMethodGen mg : methodGens) { + BcelMethod method = mg.getMemberView(); + if (method != null) { + method.wipeJoinpointSignatures(); } }