]> source.dussan.org Git - aspectj.git/commitdiff
in AspectJ 1.1, set jp's have void return type
authorehilsdal <ehilsdal>
Thu, 28 Aug 2003 16:43:42 +0000 (16:43 +0000)
committerehilsdal <ehilsdal>
Thu, 28 Aug 2003 16:43:42 +0000 (16:43 +0000)
docs/teaching/exercises/answers/Answer2d.java

index 2d313134da61172a78444c41796c8b5fd1e3898c..ffb0130810f7b7e82c62968a9c3656e4b1ac57fc 100644 (file)
@@ -15,10 +15,10 @@ package answers;
 import figures.*;
 
 aspect Answer2d {
-    int around(int val): (set(int Point._x) || set(int Point._y))
-                         && args(val) {
+    void around(int val): (set(int Point._x) || set(int Point._y))
+                          && args(val) {
         if (val < 0)
             val = 0;
-        return proceed(val);
+        proceed(val);
     }
 }