logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgo...@apache.org
Subject svn commit: r1561582 - /logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
Date Mon, 27 Jan 2014 02:23:38 GMT
Author: rgoers
Date: Mon Jan 27 02:23:38 2014
New Revision: 1561582

URL: http://svn.apache.org/r1561582
Log:
Add @throws to getOrCreateLevel method

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=1561582&r1=1561581&r2=1561582&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 Jan 27 02:23:38 2014
@@ -198,6 +198,7 @@ public final class Level implements Comp
      * @param name The name of the level.
      * @param intValue The integer value for the Level. If the level was previously created
this value is ignored.
      * @return The Level.
+     * @throws java.lang.IllegalArgumentException if the name is null or intValue is less
than zero.
      */
     public static Level getOrCreateLevel(String name, int intValue) {
         Level level = levels.get(name);



Mime
View raw message