]> source.dussan.org Git - aspectj.git/commitdiff
formatted
authoraclement <aclement>
Wed, 12 May 2010 21:11:25 +0000 (21:11 +0000)
committeraclement <aclement>
Wed, 12 May 2010 21:11:25 +0000 (21:11 +0000)
org.aspectj.matcher/src/org/aspectj/weaver/patterns/CflowPointcut.java

index 05ff2d82412c0e0c6646bae01302fe54ed35244d..6da40e523b3f983807f82e087d627530613abb34 100644 (file)
@@ -127,8 +127,9 @@ public class CflowPointcut extends Pointcut {
        }
 
        public boolean equals(Object other) {
-               if (!(other instanceof CflowPointcut))
+               if (!(other instanceof CflowPointcut)) {
                        return false;
+               }
                CflowPointcut o = (CflowPointcut) other;
                return o.entry.equals(entry) && o.isBelow == isBelow;
        }
@@ -257,8 +258,9 @@ public class CflowPointcut extends Pointcut {
                                // advice
                                // ??? this means that we will store some state that we won't
                                // actually use, optimize this later
-                               if (!bindings.hasKey(freeVar))
+                               if (!bindings.hasKey(freeVar)) {
                                        continue;
+                               }
 
                                int formalIndex = bindings.get(freeVar);
 
@@ -327,10 +329,11 @@ public class CflowPointcut extends Pointcut {
        private Object getCflowfield(CrosscuttingMembers xcut, Pointcut pcutkey, ResolvedType concreteAspect, String stackOrCounter) {
                String key = getKey(pcutkey, concreteAspect, stackOrCounter);
                Object o = null;
-               if (isBelow)
+               if (isBelow) {
                        o = xcut.getCflowBelowFields().get(key);
-               else
+               } else {
                        o = xcut.getCflowFields().get(key);
+               }
                // System.err.println("Retrieving for key "+key+" returning "+o);
                return o;
        }