From f865a36a7b9a79d0a56b2f7645df73d3949dc258 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 2 Nov 2009 16:50:50 +0000 Subject: [PATCH] generics --- weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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(); } } -- 2.39.5