Polish
Closes gh-14884
This commit is contained in:
committed by
Stephane Nicoll
parent
2a0451c461
commit
c8c3f59e93
@@ -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) {
|
||||
|
||||
@@ -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\"");
|
||||
|
||||
Reference in New Issue
Block a user