You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by re...@apache.org on 2021/04/22 19:29:07 UTC

[uima-uimaj] 01/01: [UIMA-6353] Logger_common_impl.error(String arg0, Object arg1, Object arg2) swallows last argument

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

rec pushed a commit to branch bugfix/UIMA-6353-Logger_common_impl.error-String-Object-Object-swallows-last-argument
in repository https://gitbox.apache.org/repos/asf/uima-uimaj.git

commit 19a3a61bf0a6afc4dfe34c0f0d69d63a99a18b53
Author: Richard Eckart de Castilho <re...@apache.org>
AuthorDate: Thu Apr 22 21:28:55 2021 +0200

    [UIMA-6353] Logger_common_impl.error(String arg0, Object arg1, Object arg2) swallows last argument
    
    - Pass arg2 down to the next method instead of discarding it
---
 .../java/org/apache/uima/util/impl/Logger_common_impl.java   | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/uimaj-core/src/main/java/org/apache/uima/util/impl/Logger_common_impl.java b/uimaj-core/src/main/java/org/apache/uima/util/impl/Logger_common_impl.java
index 12cab65..8d4d686 100644
--- a/uimaj-core/src/main/java/org/apache/uima/util/impl/Logger_common_impl.java
+++ b/uimaj-core/src/main/java/org/apache/uima/util/impl/Logger_common_impl.java
@@ -426,7 +426,7 @@ public abstract class Logger_common_impl implements Logger {
       return null;
     else
       return mResourceManager.getExtensionClassLoader();
-  }
+    }
  
   /*
    * (non-Javadoc)
@@ -502,7 +502,7 @@ public abstract class Logger_common_impl implements Logger {
   @Override
   public void debug(String arg0, Object arg1, Object arg2) {
     if (isLoggable(Level.DEBUG) && isNotLimited(Level.DEBUG)) {
-      log2(null, fqcnCmn, Level.DEBUG, arg0, new Object[] {arg1}, null);
+      log2(null, fqcnCmn, Level.DEBUG, arg0, new Object[] {arg1, arg2}, null);
     }
   }
 
@@ -643,7 +643,7 @@ public void debug(Marker marker, Supplier<String> msgSupplier, Throwable throwab
   @Override
   public void error(String arg0, Object arg1, Object arg2) {
     if (isLoggable(Level.ERROR) && isNotLimited(Level.ERROR)) {
-      log2(null, fqcnCmn, Level.ERROR, arg0, new Object[] {arg1}, null);
+      log2(null, fqcnCmn, Level.ERROR, arg0, new Object[] {arg1, arg2}, null);
     }
   }
 
@@ -786,7 +786,7 @@ public void debug(Marker marker, Supplier<String> msgSupplier, Throwable throwab
   @Override
   public void info(String arg0, Object arg1, Object arg2) {
     if (isLoggable(Level.INFO) && isNotLimited(Level.INFO)) {
-      log2(null, fqcnCmn, Level.INFO, arg0, new Object[] { arg1 }, null);
+      log2(null, fqcnCmn, Level.INFO, arg0, new Object[] { arg1, arg2 }, null);
     }
   }
 
@@ -936,7 +936,7 @@ public void debug(Marker marker, Supplier<String> msgSupplier, Throwable throwab
   @Override
   public void trace(String arg0, Object arg1, Object arg2) {
     if (isLoggable(Level.TRACE) && isNotLimited(Level.TRACE)) {
-      log2(null, fqcnCmn, Level.TRACE, arg0, new Object[] { arg1 }, null);
+      log2(null, fqcnCmn, Level.TRACE, arg0, new Object[] { arg1, arg2 }, null);
     }
   }
 
@@ -1086,7 +1086,7 @@ public void debug(Marker marker, Supplier<String> msgSupplier, Throwable throwab
   @Override
   public void warn(String arg0, Object arg1, Object arg2) {
     if (isLoggable(Level.WARNING) && isNotLimited(Level.WARNING)) {
-      log2(null, fqcnCmn, Level.WARNING, arg0, new Object[] { arg1 }, null);
+      log2(null, fqcnCmn, Level.WARNING, arg0, new Object[] { arg1, arg2 }, null);
     }
   }