You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rg...@apache.org on 2015/10/04 08:24:19 UTC

[10/50] 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/7f8d87d6
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/7f8d87d6
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/7f8d87d6

Branch: refs/heads/LOG4J2-1136
Commit: 7f8d87d61dcfa632fa23e262a15d1fbb2699a601
Parents: e112ef7
Author: ggregory <gg...@apache.org>
Authored: Tue Sep 29 00:09:50 2015 -0700
Committer: Ralph Goers <rg...@nextiva.com>
Committed: Sat Oct 3 23:08:04 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/7f8d87d6/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);