Browse Source

in AspectJ 1.1, set jp's have void return type

tags/V1_1_1
ehilsdal 21 years ago
parent
commit
02528df6c8
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      docs/teaching/exercises/answers/Answer2d.java

+ 3
- 3
docs/teaching/exercises/answers/Answer2d.java View 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);
}
}

Loading…
Cancel
Save