From 90da53cec2fb59df3743822ae79a5b34655a106a Mon Sep 17 00:00:00 2001 From: ehilsdal Date: Wed, 10 Nov 2004 06:03:33 +0000 Subject: 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 --- docs/teaching/exercises/answers/Answer3e.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'docs/teaching/exercises/answers/Answer3e.java') 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; + } } } -- cgit v1.2.3