logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1586574 - /logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
Date Fri, 11 Apr 2014 04:55:27 GMT
Author: ggregory
Date: Fri Apr 11 04:55:26 2014
New Revision: 1586574

URL: http://svn.apache.org/r1586574
Log:
Replace "String.length() == 0" with "String.isEmpty()".

Modified:
    logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java

Modified: logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java?rev=1586574&r1=1586573&r2=1586574&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
Fri Apr 11 04:55:26 2014
@@ -102,7 +102,7 @@ public final class Level implements Comp
     private final StandardLevel standardLevel;
 
     private Level(String name, int intLevel) {
-        if (name == null || name.length() == 0) {
+        if (name == null || name.isEmpty()) {
             throw new IllegalArgumentException("Illegal null Level constant");
         }
         if (intLevel < 0) {



Mime
View raw message