diff options
Diffstat (limited to 'docs/teaching/exercises/answers/Answer4e.java')
-rw-r--r-- | docs/teaching/exercises/answers/Answer4e.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/teaching/exercises/answers/Answer4e.java b/docs/teaching/exercises/answers/Answer4e.java index 7d7be5b91..e3d6fa3d4 100644 --- a/docs/teaching/exercises/answers/Answer4e.java +++ b/docs/teaching/exercises/answers/Answer4e.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 @@ -21,15 +21,15 @@ aspect Answer4e { private Rectangle Group.cache = null; private Group FigureElement.enclosingGroup = null; - before(FigureElement p, Group g): - execution(void add(FigureElement)) - && args(p) + before(FigureElement p, Group g): + 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 Answer4e { return g.cache; } - before(Point p): - set(* Point.*) + before(Point p): + set(* Point.*) && target(p) { FigureElement fe = p; while (fe.enclosingGroup != null) { |