[slf4j-dev] svn commit: r1326 - slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/profiler

ceki at slf4j.org ceki at slf4j.org
Thu Apr 23 17:49:39 CEST 2009


Author: ceki
Date: Thu Apr 23 17:49:38 2009
New Revision: 1326

Modified:
   slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/profiler/StopWatch.java

Log:
- fix bug in StopWatch found by "findbugs"


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 23 17:49:38 2009
@@ -81,7 +81,7 @@
       buf.append(Util.durationInDurationUnitsAsStr(elapsedTime(), DurationUnit.MICROSECOND));
       break;
     default:
-      new IllegalStateException("Status " + status + " is not expected");
+      throw new IllegalStateException("Status " + status + " is not expected");
     }
     return buf.toString();
   }



More information about the slf4j-dev mailing list