Checkstyle: DeclarationOrder, ConstantName, IDE autoformatted

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/bfc83e93
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/bfc83e93
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/bfc83e93

Branch: refs/heads/LOG4J2-1136
Commit: bfc83e9369edab5c29fd167cba3c18bd4fbe39bb
Parents: 743e1e7
Author: rpopma <[email protected]>
Authored: Thu Sep 24 09:29:07 2015 +0200
Committer: Ralph Goers <[email protected]>
Committed: Sun Sep 27 10:47:28 2015 -0700

----------------------------------------------------------------------
 .../java/org/apache/logging/log4j/spi/StandardLevel.java  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/bfc83e93/log4j-api/src/main/java/org/apache/logging/log4j/spi/StandardLevel.java
----------------------------------------------------------------------
diff --git 
a/log4j-api/src/main/java/org/apache/logging/log4j/spi/StandardLevel.java 
b/log4j-api/src/main/java/org/apache/logging/log4j/spi/StandardLevel.java
index 59b0e5a..e8c1d6c 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/spi/StandardLevel.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/spi/StandardLevel.java
@@ -19,8 +19,7 @@ package org.apache.logging.log4j.spi;
 import java.util.EnumSet;
 
 /**
- * Standard Logging Levels as an enumeration for use internally. This enum is 
used as a parameter in
- * any public APIs.
+ * Standard Logging Levels as an enumeration for use internally. This enum is 
used as a parameter in any public APIs.
  */
 public enum StandardLevel {
 
@@ -64,17 +63,17 @@ public enum StandardLevel {
      */
     ALL(Integer.MAX_VALUE);
 
+    private static final EnumSet<StandardLevel> LEVELSET = 
EnumSet.allOf(StandardLevel.class);
 
     private final int intLevel;
 
-    private static final EnumSet<StandardLevel> levelSet = 
EnumSet.allOf(StandardLevel.class);
-
     private StandardLevel(final int val) {
         intLevel = val;
     }
 
     /**
      * Returns the integer value of the Level.
+     * 
      * @return the integer value of the Level.
      */
     public int intLevel() {
@@ -83,12 +82,13 @@ public enum StandardLevel {
 
     /**
      * Method to convert custom Levels into a StandardLevel for conversion to 
other systems.
+     * 
      * @param intLevel The integer value of the Level.
      * @return The StandardLevel.
      */
     public static StandardLevel getStandardLevel(final int intLevel) {
         StandardLevel level = StandardLevel.OFF;
-        for (final StandardLevel lvl : levelSet) {
+        for (final StandardLevel lvl : LEVELSET) {
             if (lvl.intLevel() > intLevel) {
                 break;
             }

Reply via email to