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:35 UTC
[05/21] logging-log4j2 git commit: Do not use Jackson deprecated
methods.
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/9cefab4d
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/9cefab4d
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/9cefab4d
Branch: refs/heads/LOG4J-1012
Commit: 9cefab4d8c9c76b5e67131ea5570fbb1e4dc7470
Parents: b17d7c0
Author: ggregory <gg...@apache.org>
Authored: Mon Sep 28 23:50:27 2015 -0700
Committer: ggregory <gg...@apache.org>
Committed: Mon Sep 28 23:50:27 2015 -0700
----------------------------------------------------------------------
.../src/test/java/org/apache/logging/log4j/MarkerMixInTest.java | 2 +-
.../org/apache/logging/log4j/core/jackson/LevelMixInTest.java | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/9cefab4d/log4j-core/src/test/java/org/apache/logging/log4j/MarkerMixInTest.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/MarkerMixInTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/MarkerMixInTest.java
index d66e65a..ddde008 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/MarkerMixInTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/MarkerMixInTest.java
@@ -42,7 +42,7 @@ public class MarkerMixInTest {
public void setUp() {
final Log4jJsonObjectMapper log4jObjectMapper = new Log4jJsonObjectMapper();
writer = log4jObjectMapper.writer();
- reader = log4jObjectMapper.reader(Log4jMarker.class);
+ reader = log4jObjectMapper.readerFor(Log4jMarker.class);
MarkerManager.clear();
}
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/9cefab4d/log4j-core/src/test/java/org/apache/logging/log4j/core/jackson/LevelMixInTest.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/jackson/LevelMixInTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/jackson/LevelMixInTest.java
index b6ada3c..9a05881 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/jackson/LevelMixInTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/jackson/LevelMixInTest.java
@@ -76,7 +76,7 @@ public class LevelMixInTest {
public void setUp() {
log4jObjectMapper = new Log4jJsonObjectMapper();
writer = log4jObjectMapper.writer();
- reader = log4jObjectMapper.reader(Level.class);
+ reader = log4jObjectMapper.readerFor(Level.class);
}
@Test
@@ -84,7 +84,7 @@ public class LevelMixInTest {
final Fixture expected = new Fixture();
final String str = writer.writeValueAsString(expected);
Assert.assertTrue(str.contains("DEBUG"));
- final ObjectReader fixtureReader = log4jObjectMapper.reader(Fixture.class);
+ final ObjectReader fixtureReader = log4jObjectMapper.readerFor(Fixture.class);
final Fixture actual = fixtureReader.readValue(str);
Assert.assertEquals(expected, actual);
}