]> source.dussan.org Git - aspectj.git/commitdiff
more optimizations
authoraclement <aclement>
Sat, 7 Nov 2009 02:04:54 +0000 (02:04 +0000)
committeraclement <aclement>
Sat, 7 Nov 2009 02:04:54 +0000 (02:04 +0000)
weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java

index 1743be01d040c054aa3a00a5cb766cb0a81a945a..0e04fe37b6308c6183b4ece385c921b5235e7b57 100644 (file)
@@ -2521,7 +2521,7 @@ class BcelClassWeaver implements IClassWeaver {
                // we want to match ajsynthetic constructors...
                if (startsAngly && mg.getName().equals("<init>")) {
                        return matchInit(mg, shadowAccumulator);
-               } else if (!shouldWeaveBody(mg)) { // .isAjSynthetic()) {
+               } else if (!shouldWeaveBody(mg)) {
                        return false;
                } else {
                        if (startsAngly && mg.getName().equals("<clinit>")) {
@@ -3067,11 +3067,8 @@ class BcelClassWeaver implements IClassWeaver {
        private static boolean captureLowLevelContext = false;
 
        private boolean match(BcelShadow shadow, List<BcelShadow> 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;