[slf4j-dev] svn commit: r1301 - slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/profiler
ceki at slf4j.org
ceki at slf4j.org
Thu Apr 16 16:28:25 CEST 2009
Author: ceki
Date: Thu Apr 16 16:28:25 2009
New Revision: 1301
Modified:
slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/profiler/Profiler.java
slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/profiler/StopWatch.java
slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/profiler/Util.java
Log:
Typo fixes in method names.
Modified: slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/profiler/Profiler.java
==============================================================================
--- slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/profiler/Profiler.java (original)
+++ slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/profiler/Profiler.java Thu Apr 16 16:28:25 2009
@@ -148,7 +148,7 @@
}
/**
- * This mehtod is used in tests.
+ * This method is used in tests.
*/
void sanityCheck() throws IllegalStateException {
if(getStatus() != TimeInstrumentStatus.STOPPED) {
@@ -233,7 +233,7 @@
buf.append(prefix);
SpacePadder.leftPad(buf, "[" + sw.getName() + "]", MIN_SW_NAME_LENGTH);
buf.append(" ");
- String timeStr = Util.durationInDunrationUnitsAsStr(sw.elapsedTime(),
+ String timeStr = Util.durationInDurationUnitsAsStr(sw.elapsedTime(),
du);
SpacePadder.leftPad(buf, timeStr, MIN_SW_ELAPSED_TIME_NUMBER_LENGTH);
buf.append(" ");
Modified: slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/profiler/StopWatch.java
==============================================================================
--- slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/profiler/StopWatch.java (original)
+++ slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/profiler/StopWatch.java Thu Apr 16 16:28:25 2009
@@ -78,7 +78,7 @@
break;
case STOPPED:
buf.append("elapsed time: ");
- buf.append(Util.durationInDunrationUnitsAsStr(elapsedTime(), DurationUnit.MICROSECOND));
+ buf.append(Util.durationInDurationUnitsAsStr(elapsedTime(), DurationUnit.MICROSECOND));
break;
default:
new IllegalStateException("Status " + status + " is not expected");
Modified: slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/profiler/Util.java
==============================================================================
--- slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/profiler/Util.java (original)
+++ slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/profiler/Util.java Thu Apr 16 16:28:25 2009
@@ -68,12 +68,12 @@
return ((double) nanos / NANOS_IN_ONE_SECOND);
}
- static String durationInDunrationUnitsAsStr(StringBuffer buf, StopWatch sw) {
+ static String durationInDurationUnitsAsStr(StringBuffer buf, StopWatch sw) {
DurationUnit du = selectDurationUnitForDisplay(sw);
- return durationInDunrationUnitsAsStr(sw.elapsedTime(), du);
+ return durationInDurationUnitsAsStr(sw.elapsedTime(), du);
}
- static String durationInDunrationUnitsAsStr(long nanos, DurationUnit durationUnit) {
+ static String durationInDurationUnitsAsStr(long nanos, DurationUnit durationUnit) {
StringBuffer buf = new StringBuffer();
switch (durationUnit) {
case NANOSECOND:
More information about the slf4j-dev
mailing list