diff options
author | ehilsdal <ehilsdal> | 2004-11-10 06:03:33 +0000 |
---|---|---|
committer | ehilsdal <ehilsdal> | 2004-11-10 06:03:33 +0000 |
commit | 90da53cec2fb59df3743822ae79a5b34655a106a (patch) | |
tree | 0b50d12403b79b7f40f528d7e2b81d6dc710f9ef /docs/teaching/exercises/answers/Answer4d.java | |
parent | c9363fd12ac1d276af0bb63b87e893c7cef50ecf (diff) | |
download | aspectj-90da53cec2fb59df3743822ae79a5b34655a106a.tar.gz aspectj-90da53cec2fb59df3743822ae79a5b34655a106a.zip |
revised with info from OOPSLA 2004:
renaming support.Log.log to support.Log.write
renaming test.Test to test.CoreTest
(r)ing aspectj
clearing up a few random things
Diffstat (limited to 'docs/teaching/exercises/answers/Answer4d.java')
-rw-r--r-- | docs/teaching/exercises/answers/Answer4d.java | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/docs/teaching/exercises/answers/Answer4d.java b/docs/teaching/exercises/answers/Answer4d.java index 58d31d44c..6b0b63c20 100644 --- a/docs/teaching/exercises/answers/Answer4d.java +++ b/docs/teaching/exercises/answers/Answer4d.java @@ -22,21 +22,24 @@ 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); } return g.cache; } - before(Point p): set(* Point.*) && target(p) { + before(Point p): + set(* Point.*) + && target(p) { if (p.enclosingGroup != null) { p.enclosingGroup.cache = null; } |