]> source.dussan.org Git - aspectj.git/commitdiff
generics
authoraclement <aclement>
Mon, 2 Nov 2009 16:50:50 +0000 (16:50 +0000)
committeraclement <aclement>
Mon, 2 Nov 2009 16:50:50 +0000 (16:50 +0000)
weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java

index 575234d60eaee8d269b37e6d1e7b33fec641e4a2..1743be01d040c054aa3a00a5cb766cb0a81a945a 100644 (file)
@@ -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();
                        }
                }