You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rg...@apache.org on 2015/09/27 20:41:39 UTC

[47/50] [abbrv] logging-log4j2 git commit: Checkstyle: suppress remaining 2 errors in log4j-api

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/79e447c1
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/79e447c1
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/79e447c1

Branch: refs/heads/LOG4J2-1136
Commit: 79e447c132825ce80e5ad27b0fb7d6767371a2e8
Parents: 7204371
Author: rpopma <rp...@apache.org>
Authored: Thu Sep 24 18:52:31 2015 +0200
Committer: Ralph Goers <rg...@nextiva.com>
Committed: Sun Sep 27 10:49:28 2015 -0700

----------------------------------------------------------------------
 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/79e447c1/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/79e447c1/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;