logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1581028 - /logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
Date Mon, 24 Mar 2014 20:10:38 GMT
Author: ggregory
Date: Mon Mar 24 20:10:37 2014
New Revision: 1581028

URL: http://svn.apache.org/r1581028
Log:
Add API to match types of others in this class.

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=1581028&r1=1581027&r2=1581028&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
Mon Mar 24 20:10:37 2014
@@ -152,6 +152,16 @@ public final class Level implements Comp
      * @param level The level to test.
      * @return True if the given Level is less specific or the same than this Level.
      */
+    public boolean isGreaterOrEqual(final int level) {
+        return this.intLevel >= level;
+    }
+
+    /**
+     * Compares the given Level against this one.
+     * 
+     * @param level The level to test.
+     * @return True if the given Level is less specific or the same than this Level.
+     */
     public boolean isGreaterOrEqual(final Level level) {
         return this.intLevel >= level.intLevel;
     }



Mime
View raw message