From 7ab4ecf0d42728083c60d0dd86fb04e0fcd6bc7e Mon Sep 17 00:00:00 2001 From: aclement Date: Sat, 7 Nov 2009 02:04:54 +0000 Subject: [PATCH] more optimizations --- weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java b/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java index 1743be01d..0e04fe37b 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java @@ -2521,7 +2521,7 @@ class BcelClassWeaver implements IClassWeaver { // we want to match ajsynthetic constructors... if (startsAngly && mg.getName().equals("")) { return matchInit(mg, shadowAccumulator); - } else if (!shouldWeaveBody(mg)) { // .isAjSynthetic()) { + } else if (!shouldWeaveBody(mg)) { return false; } else { if (startsAngly && mg.getName().equals("")) { @@ -3067,11 +3067,8 @@ class BcelClassWeaver implements IClassWeaver { private static boolean captureLowLevelContext = false; private boolean match(BcelShadow shadow, List shadowAccumulator) { - // System.err.println("match: " + shadow); - if (captureLowLevelContext) { // duplicate blocks - one with context - // capture, one without, seems faster - // than multiple - // 'ifs()' + // Duplicate blocks - one with context one without, seems faster than multiple 'ifs' + if (captureLowLevelContext) { ContextToken shadowMatchToken = CompilationAndWeavingContext.enteringPhase( CompilationAndWeavingContext.MATCHING_SHADOW, shadow); boolean isMatched = false; -- 2.39.5