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

[15/21] logging-log4j2 git commit: [LOG4J2-1138] Do not use Jackson deprecated methods.

[LOG4J2-1138] Do not use Jackson deprecated methods.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/b8c6806d
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/b8c6806d
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/b8c6806d

Branch: refs/heads/LOG4J-1012
Commit: b8c6806d54a8a4fcc364970d35a69cf9508dc132
Parents: 17a560c
Author: ggregory <gg...@apache.org>
Authored: Tue Sep 29 00:09:50 2015 -0700
Committer: ggregory <gg...@apache.org>
Committed: Tue Sep 29 00:09:50 2015 -0700

----------------------------------------------------------------------
 .../logging/log4j/core/net/server/InputStreamLogEventBridge.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/b8c6806d/log4j-core/src/main/java/org/apache/logging/log4j/core/net/server/InputStreamLogEventBridge.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/net/server/InputStreamLogEventBridge.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/net/server/InputStreamLogEventBridge.java
index 243c402..11b4aa4 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/net/server/InputStreamLogEventBridge.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/net/server/InputStreamLogEventBridge.java
@@ -45,7 +45,7 @@ public abstract class InputStreamLogEventBridge extends AbstractLogEventBridge<I
         this.bufferSize = bufferSize;
         this.charset = charset;
         this.eventEndMarker = eventEndMarker;
-        this.objectReader = mapper.reader(Log4jLogEvent.class);
+        this.objectReader = mapper.readerFor(Log4jLogEvent.class);
     }
 
     abstract protected int[] getEventIndices(final String text, int beginIndex);