logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1431915 - /logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Priority.java
Date Fri, 11 Jan 2013 07:05:11 GMT
Author: ggregory
Date: Fri Jan 11 07:05:11 2013
New Revision: 1431915

URL: http://svn.apache.org/viewvc?rev=1431915&view=rev
Log:
Statement unnecessarily nested within else clause.

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

Modified: logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Priority.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Priority.java?rev=1431915&r1=1431914&r2=1431915&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Priority.java (original)
+++ logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Priority.java Fri
Jan 11 07:05:11 2013
@@ -130,9 +130,8 @@ public class Priority {
         if (o instanceof Priority) {
             final Priority r = (Priority) o;
             return this.level == r.level;
-        } else {
-            return false;
         }
+        return false;
     }
 
     /**



Mime
View raw message