diff options
Diffstat (limited to 'docs/teaching/exercises/answers/Answer4d.java')
-rw-r--r-- | docs/teaching/exercises/answers/Answer4d.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/teaching/exercises/answers/Answer4d.java b/docs/teaching/exercises/answers/Answer4d.java index cc6c4785e..2f019c249 100644 --- a/docs/teaching/exercises/answers/Answer4d.java +++ b/docs/teaching/exercises/answers/Answer4d.java @@ -2,9 +2,9 @@ * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC). * All rights reserved. * This program and the accompanying materials are made available - * under the terms of the Eclipse Public License v1.0 + * under the terms of the Eclipse Public License v 2.0 * which accompanies this distribution and is available at - * http://www.eclipse.org/legal/epl-v10.html + * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt * * Contributors: * PARC initial implementation @@ -22,14 +22,14 @@ aspect Answer4d { private Group Point.enclosingGroup = null; before(Point p, Group g): - execution(void add(FigureElement)) - && args(p) + execution(void add(FigureElement)) + && args(p) && target(g) { p.enclosingGroup = g; } Rectangle around(Group g): - execution(Rectangle Group.getBounds()) + execution(Rectangle Group.getBounds()) && this(g) { if (g.cache == null) { g.cache = proceed(g); @@ -37,8 +37,8 @@ aspect Answer4d { return g.cache; } - before(Point p): - set(* Point.*) + before(Point p): + set(* Point.*) && target(p) { if (p.enclosingGroup != null) { p.enclosingGroup.cache = null; |