]> source.dussan.org Git - aspectj.git/commitdiff
Declare annotation: New lints
authoraclement <aclement>
Thu, 10 Mar 2005 12:06:42 +0000 (12:06 +0000)
committeraclement <aclement>
Thu, 10 Mar 2005 12:06:42 +0000 (12:06 +0000)
weaver/src/org/aspectj/weaver/Lint.java
weaver/src/org/aspectj/weaver/XlintDefault.properties

index 2645dd54787931dc1413289a2a0ec5c652fa378b..6f94f98971fe79d955a1bde4e451bf703e148bc4 100644 (file)
@@ -76,7 +76,13 @@ public class Lint {
        
     public final Kind adviceDidNotMatch =
         new Kind("adviceDidNotMatch","advice defined in {0} has not been applied");
+    
+    public final Kind invalidTargetForAnnotation =
+       new Kind("invalidTargetForAnnotation","{0} is not a valid target for annotation {1}, this annotation can only be applied to {2}");
 
+    public final Kind elementAlreadyAnnotated =
+       new Kind("elementAlreadyAnnotated","{0} - already has an annotation of type {1}, cannot add a second instance");
+       
     public Lint(World world) {
                this.world = world;
        }
index 67670fa4a83d897db702edd57f529e589cb1fba4..0de844d38d02b69d8ef4edda7c9f664ec10d9dcd 100644 (file)
@@ -20,4 +20,6 @@ noJoinpointsForBridgeMethods = warning
 cantMatchArrayTypeOnVarargs = ignore
 enumAsTargetForDecpIgnored = warning
 annotationAsTargetForDecpIgnored = warning
-adviceDidNotMatch = warning
\ No newline at end of file
+adviceDidNotMatch = warning
+invalidTargetForAnnotation = warning
+elementAlreadyAnnotated = warning
\ No newline at end of file