]> source.dussan.org Git - aspectj.git/commitdiff
Added coverge to LST file tests.
authormkersten <mkersten>
Tue, 22 Jul 2003 16:31:50 +0000 (16:31 +0000)
committermkersten <mkersten>
Tue, 22 Jul 2003 16:31:50 +0000 (16:31 +0000)
ajde/testdata/LstBuildConfigManagerTest/invalid-entry.lst [new file with mode: 0644]
ajde/testdata/examples/declare-warning/apackage/InitCatcher.java
ajde/testdata/examples/declare-warning/apackage/SomeClass.java

diff --git a/ajde/testdata/LstBuildConfigManagerTest/invalid-entry.lst b/ajde/testdata/LstBuildConfigManagerTest/invalid-entry.lst
new file mode 100644 (file)
index 0000000..152ca94
--- /dev/null
@@ -0,0 +1 @@
+aaa.bbb\r
index ac34d3c0c5930b95b0333ecb7f832d463a77cf32..efa19bba61a2f5f0ac479d6a71f688fc2ba10359 100644 (file)
@@ -3,6 +3,9 @@ package apackage;
 public aspect InitCatcher {
        
        declare warning: call(* *.init(..)) :
-               "Please don't call init methods";       //$NON-NLS-1$
+               "Please don't call init methods";       
+
+       declare warning: set(* SomeClass.*) :
+               "Please don't call setters";    
        
 }
\ No newline at end of file
index eff26d5c86c17457d7c7d96667682171c74b0a97..bb34db820489cbc4089cb9d46d800a8eb769262f 100644 (file)
@@ -2,8 +2,11 @@ package apackage;
 
 public class SomeClass {
        
+       int x;
+       
        public SomeClass() {
                init();  // line 6      
+               x = 3;
        }
        
        public void init() {