aboutsummaryrefslogtreecommitdiffstats
path: root/docs/dist/doc/examples/telecom/Timing.java
diff options
context:
space:
mode:
authorehilsdal <ehilsdal>2003-04-08 21:59:39 +0000
committerehilsdal <ehilsdal>2003-04-08 21:59:39 +0000
commite2af842ae7dbf3b0315a5f73d3d5ec9b7f041556 (patch)
treea4e993a588298b0d6babdf643de8d35991a2ebd6 /docs/dist/doc/examples/telecom/Timing.java
parentf11709f8bc26a053ff573039cc0b5ee887c005ff (diff)
downloadaspectj-e2af842ae7dbf3b0315a5f73d3d5ec9b7f041556.tar.gz
aspectj-e2af842ae7dbf3b0315a5f73d3d5ec9b7f041556.zip
folded in material from README-11.html
finally totally and completely stomped out "introduction" minor formatting changes generating better filenames for the progguide added A4 version of quick reference
Diffstat (limited to 'docs/dist/doc/examples/telecom/Timing.java')
-rw-r--r--docs/dist/doc/examples/telecom/Timing.java15
1 files changed, 5 insertions, 10 deletions
diff --git a/docs/dist/doc/examples/telecom/Timing.java b/docs/dist/doc/examples/telecom/Timing.java
index f40bd0fca..29eba02ea 100644
--- a/docs/dist/doc/examples/telecom/Timing.java
+++ b/docs/dist/doc/examples/telecom/Timing.java
@@ -1,5 +1,4 @@
/*
-
Copyright (c) Xerox Corporation 1998-2002. All rights reserved.
Use and copying of this software and preparation of derivative works based
@@ -9,12 +8,8 @@ laws.
This software is made available AS IS, and Xerox Corporation makes no warranty
about the software, its performance or its conformity to any specification.
-
-|<--- this code is formatted to fit into 80 columns --->|
-|<--- this code is formatted to fit into 80 columns --->|
-|<--- this code is formatted to fit into 80 columns --->|
-
*/
+
package telecom;
/**
@@ -28,9 +23,9 @@ public aspect Timing {
* Every Customer has a total connection time
*/
public long Customer.totalConnectTime = 0;
-
- public long getTotalConnectTime(Customer cust) {
- return cust.totalConnectTime;
+
+ public long getTotalConnectTime(Customer cust) {
+ return cust.totalConnectTime;
}
/**
* Every connection has a timer
@@ -48,7 +43,7 @@ public aspect Timing {
/**
* When to stop the timer
*/
- pointcut endTiming(Connection c): target(c) &&
+ pointcut endTiming(Connection c): target(c) &&
call(void Connection.drop());
/**