Closes gh-14884
This commit is contained in:
Johnny Lim
2018-10-18 15:48:49 +09:00
committed by Stephane Nicoll
parent 2a0451c461
commit c8c3f59e93
8 changed files with 14 additions and 17 deletions

View File

@@ -151,6 +151,7 @@ public class DeferredLog implements Log {
/**
* Switch from deferred logging to immediate logging to the specified destination.
* @param destination the new log destination
* @since 2.1.0
*/
public void switchTo(Class<?> destination) {
switchTo(LogFactory.getLog(destination));
@@ -159,6 +160,7 @@ public class DeferredLog implements Log {
/**
* Switch from deferred logging to immediate logging to the specified destination.
* @param destination the new log destination
* @since 2.1.0
*/
public void switchTo(Log destination) {
synchronized (this.lines) {

View File

@@ -167,7 +167,7 @@ public abstract class AbstractJsonParserTests {
}
@Test
public void escapeQuote() {
public void escapeDoubleQuote() {
String input = "{\"foo\": \"\\\"bar\\\"\"}";
Map<String, Object> map = this.parser.parseMap(input);
assertThat(map.get("foo")).isEqualTo("\"bar\"");