You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2022/01/07 15:50:26 UTC

[logging-log4j2] 02/03: Log4j 1.2 bridge methods Category.getChainedPriority() and getEffectiveLevel() should not be final.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit 06105948e9c6146c174aed02dc14df874e753e1e
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jan 7 10:37:14 2022 -0500

    Log4j 1.2 bridge methods Category.getChainedPriority() and
    getEffectiveLevel() should not be final.
---
 log4j-1.2-api/src/main/java/org/apache/log4j/Category.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/log4j-1.2-api/src/main/java/org/apache/log4j/Category.java b/log4j-1.2-api/src/main/java/org/apache/log4j/Category.java
index f359d02..3dc4ff7 100644
--- a/log4j-1.2-api/src/main/java/org/apache/log4j/Category.java
+++ b/log4j-1.2-api/src/main/java/org/apache/log4j/Category.java
@@ -235,7 +235,7 @@ public class Category implements AppenderAttachable {
         return LogManager.getLoggerRepository();
     }
 
-    public final Level getEffectiveLevel() {
+    public Level getEffectiveLevel() {
         switch (logger.getLevel().getStandardLevel()) {
         case ALL:
             return Level.ALL;
@@ -277,7 +277,7 @@ public class Category implements AppenderAttachable {
         return repository;
     }
 
-    public final Priority getChainedPriority() {
+    public Priority getChainedPriority() {
         return getEffectiveLevel();
     }