Fix source inconsistencies: Some methods used both "foo" and "this.foo" for ivar references; made it all "this.foo".

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@583608 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2007-10-10 20:38:41 +00:00
parent 15296e0664
commit 16d4476068
1 changed files with 10 additions and 10 deletions

View File

@ -118,8 +118,8 @@ public void start() {
if (this.runningState != STATE_UNSTARTED) {
throw new IllegalStateException("Stopwatch already started. ");
}
stopTime = -1;
startTime = System.currentTimeMillis();
this.stopTime = -1;
this.startTime = System.currentTimeMillis();
this.runningState = STATE_RUNNING;
}
@ -140,7 +140,7 @@ public void stop() {
throw new IllegalStateException("Stopwatch is not running. ");
}
if (this.runningState == STATE_RUNNING) {
stopTime = System.currentTimeMillis();
this.stopTime = System.currentTimeMillis();
}
this.runningState = STATE_STOPPED;
}
@ -157,8 +157,8 @@ public void stop() {
public void reset() {
this.runningState = STATE_UNSTARTED;
this.splitState = STATE_UNSPLIT;
startTime = -1;
stopTime = -1;
this.startTime = -1;
this.stopTime = -1;
}
/**
@ -178,7 +178,7 @@ public void split() {
if (this.runningState != STATE_RUNNING) {
throw new IllegalStateException("Stopwatch is not running. ");
}
stopTime = System.currentTimeMillis();
this.stopTime = System.currentTimeMillis();
this.splitState = STATE_SPLIT;
}
@ -199,7 +199,7 @@ public void unsplit() {
if (this.splitState != STATE_SPLIT) {
throw new IllegalStateException("Stopwatch has not been split. ");
}
stopTime = -1;
this.stopTime = -1;
this.splitState = STATE_UNSPLIT;
}
@ -220,7 +220,7 @@ public void suspend() {
if (this.runningState != STATE_RUNNING) {
throw new IllegalStateException("Stopwatch must be running to suspend. ");
}
stopTime = System.currentTimeMillis();
this.stopTime = System.currentTimeMillis();
this.runningState = STATE_SUSPENDED;
}
@ -241,8 +241,8 @@ public void resume() {
if (this.runningState != STATE_SUSPENDED) {
throw new IllegalStateException("Stopwatch must be suspended to resume. ");
}
startTime += (System.currentTimeMillis() - stopTime);
stopTime = -1;
this.startTime += (System.currentTimeMillis() - this.stopTime);
this.stopTime = -1;
this.runningState = STATE_RUNNING;
}