You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rp...@apache.org on 2015/09/24 18:52:40 UTC

logging-log4j2 git commit: Checkstyle: suppress remaining 2 errors in log4j-api

Repository: logging-log4j2
Updated Branches:
  refs/heads/master f0fca5c21 -> d659bdf69


Checkstyle: suppress remaining 2 errors in log4j-api

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

Branch: refs/heads/master
Commit: d659bdf69e0b915684b6c9994d6f009b6929af6b
Parents: f0fca5c
Author: rpopma <rp...@apache.org>
Authored: Thu Sep 24 18:52:31 2015 +0200
Committer: rpopma <rp...@apache.org>
Committed: Thu Sep 24 18:52:31 2015 +0200

----------------------------------------------------------------------
 log4j-api/src/main/java/org/apache/logging/log4j/Level.java    | 6 ++++--
 .../java/org/apache/logging/log4j/util/ReflectionUtil.java     | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d659bdf6/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
----------------------------------------------------------------------
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/Level.java b/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
index 97a6e7c..07d220a 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
@@ -178,9 +178,11 @@ public final class Level implements Comparable<Level>, Serializable {
 
     @Override
     @SuppressWarnings("CloneDoesntCallSuperClone")
-    public Level clone() throws CloneNotSupportedException { // SUPPRESS CHECKSTYLE
-        throw new CloneNotSupportedException(); // SUPPRESS CHECKSTYLE
+    // CHECKSTYLE:OFF
+    public Level clone() throws CloneNotSupportedException {
+        throw new CloneNotSupportedException();
     }
+    // CHECKSTYLE:ON
 
     @Override
     public int compareTo(final Level other) {

http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d659bdf6/log4j-api/src/main/java/org/apache/logging/log4j/util/ReflectionUtil.java
----------------------------------------------------------------------
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/util/ReflectionUtil.java b/log4j-api/src/main/java/org/apache/logging/log4j/util/ReflectionUtil.java
index 562cb65..6e7ce4a 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/util/ReflectionUtil.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/util/ReflectionUtil.java
@@ -49,8 +49,10 @@ import org.apache.logging.log4j.status.StatusLogger;
  */
 public final class ReflectionUtil {
     // Checkstyle Suppress: the lower-case 'u' ticks off CheckStyle...
-    static final int JDK_7u25_OFFSET; // SUPPRESS CHECKSTYLE
-
+    // CHECKSTYLE:OFF
+    static final int JDK_7u25_OFFSET;
+    // CHECKSTYLE:OFF
+    
     private static final Logger LOGGER = StatusLogger.getLogger();
     private static final boolean SUN_REFLECTION_SUPPORTED;
     private static final Method GET_CALLER_CLASS;