aboutsummaryrefslogtreecommitdiffstats
path: root/docs/teaching/exercises/answers/Answer3e.java
diff options
context:
space:
mode:
authorehilsdal <ehilsdal>2004-11-10 06:03:33 +0000
committerehilsdal <ehilsdal>2004-11-10 06:03:33 +0000
commit90da53cec2fb59df3743822ae79a5b34655a106a (patch)
tree0b50d12403b79b7f40f528d7e2b81d6dc710f9ef /docs/teaching/exercises/answers/Answer3e.java
parentc9363fd12ac1d276af0bb63b87e893c7cef50ecf (diff)
downloadaspectj-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/Answer3e.java')
-rwxr-xr-xdocs/teaching/exercises/answers/Answer3e.java17
1 files changed, 10 insertions, 7 deletions
diff --git a/docs/teaching/exercises/answers/Answer3e.java b/docs/teaching/exercises/answers/Answer3e.java
index 8e0018df8..2b3882026 100755
--- a/docs/teaching/exercises/answers/Answer3e.java
+++ b/docs/teaching/exercises/answers/Answer3e.java
@@ -18,13 +18,16 @@ import figures.*;
aspect Answer3e {
- Group Point.containingGroup = null;
+ private Group Point.containingGroup = null;
- before(Group g, Point p): execution(void Group.add(FigureElement)) && this(g) && args(p) {
- if (p.containingGroup != null) {
- throw new IllegalStateException(p.containingGroup.toString());
- } else {
- p.containingGroup = g;
- }
+ before(Group g, Point p):
+ execution(void Group.add(FigureElement))
+ && this(g)
+ && args(p) {
+ if (p.containingGroup != null) {
+ throw new IllegalStateException(p.containingGroup.toString());
+ } else {
+ p.containingGroup = g;
+ }
}
}