]> source.dussan.org Git - aspectj.git/commitdiff
198341: test and fix
authoraclement <aclement>
Fri, 22 Aug 2008 21:07:24 +0000 (21:07 +0000)
committeraclement <aclement>
Fri, 22 Aug 2008 21:07:24 +0000 (21:07 +0000)
weaver/src/org/aspectj/weaver/patterns/AndTypePattern.java
weaver/src/org/aspectj/weaver/patterns/OrTypePattern.java

index 8c45988e6819103e7b9bb8f5a47b909a021ffd08..ebf79de6d0eb3d4260f4357620de5db5cbad7088 100644 (file)
@@ -147,6 +147,10 @@ public class AndTypePattern extends TypePattern {
                AndTypePattern atp = (AndTypePattern) obj;
                return left.equals(atp.left) && right.equals(atp.right);
        }
+
+       public boolean isStarAnnotation() {
+               return left.isStarAnnotation() && right.isStarAnnotation();
+       }
        
        /* (non-Javadoc)
         * @see java.lang.Object#hashCode()
index b5011cc5e5011cca0b58f147d9c2a7b022be569f..52a18d50a43167ac24d8b9f1824f55f767876fce 100644 (file)
@@ -146,6 +146,10 @@ public class OrTypePattern extends TypePattern {
                }
                return buff.toString();
        }
+
+       public boolean isStarAnnotation() {
+               return left.isStarAnnotation() || right.isStarAnnotation();
+       }
        
        /* (non-Javadoc)
         * @see java.lang.Object#equals(java.lang.Object)