Return-Path: X-Original-To: apmail-logging-commits-archive@minotaur.apache.org Delivered-To: apmail-logging-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0E0DE10072 for ; Sun, 9 Feb 2014 03:18:31 +0000 (UTC) Received: (qmail 66088 invoked by uid 500); 9 Feb 2014 03:18:30 -0000 Delivered-To: apmail-logging-commits-archive@logging.apache.org Received: (qmail 66053 invoked by uid 500); 9 Feb 2014 03:18:29 -0000 Mailing-List: contact commits-help@logging.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@logging.apache.org Delivered-To: mailing list commits@logging.apache.org Received: (qmail 66046 invoked by uid 99); 9 Feb 2014 03:18:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Feb 2014 03:18:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Feb 2014 03:18:27 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 764C623888D7; Sun, 9 Feb 2014 03:18:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1566193 - /logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Level.java Date: Sun, 09 Feb 2014 03:18:07 -0000 To: commits@logging.apache.org From: ggregory@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140209031807.764C623888D7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ggregory Date: Sun Feb 9 03:18:07 2014 New Revision: 1566193 URL: http://svn.apache.org/r1566193 Log: Unnecessary final modifier in final class. 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=1566193&r1=1566192&r2=1566193&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 03:18:07 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 getDeclaringClass() { + public Class 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); } }