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