summaryrefslogtreecommitdiffstats
path: root/docs/teaching/exercises/answers/Answer4d.java
diff options
context:
space:
mode:
authorehilsdal <ehilsdal>2003-08-27 20:13:05 +0000
committerehilsdal <ehilsdal>2003-08-27 20:13:05 +0000
commit910f2658b1342cd4a3b22169895c71fa8b48279c (patch)
tree9a1b7d32e315012600d5cd4bb6a7720a8e1d85e4 /docs/teaching/exercises/answers/Answer4d.java
parent3fa486456c61e332341ccfb634a72920b6467c50 (diff)
downloadaspectj-910f2658b1342cd4a3b22169895c71fa8b48279c.tar.gz
aspectj-910f2658b1342cd4a3b22169895c71fa8b48279c.zip
untabified
Diffstat (limited to 'docs/teaching/exercises/answers/Answer4d.java')
-rw-r--r--docs/teaching/exercises/answers/Answer4d.java34
1 files changed, 17 insertions, 17 deletions
diff --git a/docs/teaching/exercises/answers/Answer4d.java b/docs/teaching/exercises/answers/Answer4d.java
index 10d90f6dd..f2127836a 100644
--- a/docs/teaching/exercises/answers/Answer4d.java
+++ b/docs/teaching/exercises/answers/Answer4d.java
@@ -1,13 +1,13 @@
/* *******************************************************************
* 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 Common Public License v1.0
- * which accompanies this distribution and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * PARC initial implementation
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Common Public License v1.0
+ * which accompanies this distribution and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ * PARC initial implementation
* ******************************************************************/
package answers;
@@ -22,21 +22,21 @@ aspect Answer4d {
private Group Point.enclosingGroup = null;
before(Point p, Group g):
- execution(void add(FigureElement)) && args(p) && target(g) {
- p.enclosingGroup = g;
+ execution(void add(FigureElement)) && args(p) && target(g) {
+ p.enclosingGroup = g;
}
Rectangle around(Group g):
execution(Rectangle Group.getBounds()) && this(g) {
- if (g.cache == null) {
- g.cache = proceed(g);
- }
- return g.cache;
+ if (g.cache == null) {
+ g.cache = proceed(g);
+ }
+ return g.cache;
}
before(Point p): set(* Point.*) && target(p) {
- if (p.enclosingGroup != null) {
- p.enclosingGroup.cache = null;
- }
+ if (p.enclosingGroup != null) {
+ p.enclosingGroup.cache = null;
+ }
}
}