diff options
Diffstat (limited to 'docs/teaching/exercises/answers/Answer4d.java')
-rw-r--r-- | docs/teaching/exercises/answers/Answer4d.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/teaching/exercises/answers/Answer4d.java b/docs/teaching/exercises/answers/Answer4d.java index f2127836a..58d31d44c 100644 --- a/docs/teaching/exercises/answers/Answer4d.java +++ b/docs/teaching/exercises/answers/Answer4d.java @@ -22,12 +22,14 @@ aspect Answer4d { private Group Point.enclosingGroup = null; before(Point p, Group g): - execution(void add(FigureElement)) && args(p) && target(g) { + execution(void add(FigureElement)) && args(p) && target(g) + { p.enclosingGroup = g; } Rectangle around(Group g): - execution(Rectangle Group.getBounds()) && this(g) { + execution(Rectangle Group.getBounds()) && this(g) + { if (g.cache == null) { g.cache = proceed(g); } |