You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ni...@apache.org on 2014/02/09 07:39:31 UTC

svn commit: r1566241 - /logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java

Author: nickwilliams
Date: Sun Feb  9 06:39:31 2014
New Revision: 1566241

URL: http://svn.apache.org/r1566241
Log:
Reverting restoration of final keyword on Level methods

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=1566241&r1=1566240&r2=1566241&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 Sun Feb  9 06:39:31 2014
@@ -117,11 +117,11 @@ public final class Level implements Comp
         }
     }
 
-    public final int intLevel() {
+    public int intLevel() {
         return this.intLevel;
     }
 
-    public final StandardLevel getStandardLevel() {
+    public StandardLevel getStandardLevel() {
         return standardLevel;
     }
 
@@ -132,7 +132,7 @@ public final class Level implements Comp
      * @param level The level to check.
      * @return True if the passed Level is more specific or the same as this Level.
      */
-    public final boolean isAtLeastAsSpecificAs(final Level level) {
+    public boolean isAtLeastAsSpecificAs(final Level level) {
         return this.intLevel <= level.intLevel;
     }
 
@@ -143,7 +143,7 @@ public final class Level implements Comp
      * @param level The level to check.
      * @return True if the passed Level is more specific or the same as this Level.
      */
-    public final boolean isAtLeastAsSpecificAs(final int level) {
+    public boolean isAtLeastAsSpecificAs(final int level) {
         return this.intLevel <= level;
     }
 
@@ -152,7 +152,7 @@ public final class Level implements Comp
      * @param level The level to check.
      * @return True if the passed Level is more specific or the same as this Level.
      */
-    public final boolean lessOrEqual(final Level level) {
+    public boolean lessOrEqual(final Level level) {
         return this.intLevel <= level.intLevel;
     }
 
@@ -161,42 +161,42 @@ public final class Level implements Comp
      * @param level The level to check.
      * @return True if the passed Level is more specific or the same as this Level.
      */
-    public final boolean lessOrEqual(final int level) {
+    public boolean lessOrEqual(final int level) {
         return this.intLevel <= level;
     }
 
     @Override
     @SuppressWarnings("CloneDoesntCallSuperClone")
-    public final Level clone() throws CloneNotSupportedException {
+    public Level clone() throws CloneNotSupportedException {
         throw new CloneNotSupportedException();
     }
 
     @Override
-    public final int compareTo(Level other) {
+    public int compareTo(Level other) {
         return intLevel < other.intLevel ? -1 : (intLevel > other.intLevel ? 1 : 0);
     }
 
     @Override
-    public final boolean equals(Object other) {
+    public boolean equals(Object other) {
         return other instanceof Level && other == this;
     }
 
-    public final Class<Level> getDeclaringClass() {
+    public Class<Level> getDeclaringClass() {
         return Level.class;
     }
 
     @Override
-    public final int hashCode() {
+    public int hashCode() {
         return this.name.hashCode();
     }
 
 
-    public final String name() {
+    public String name() {
         return this.name;
     }
 
     @Override
-    public final String toString() {
+    public String toString() {
         return this.name;
     }
 
@@ -288,7 +288,7 @@ public final class Level implements Comp
     }
 
     // for deserialization
-    protected final Object readResolve() throws ObjectStreamException {
+    protected Object readResolve() throws ObjectStreamException {
         return Level.valueOf(this.name);
     }
 }