From b402098e74c1025177a6da76b30469fc2d172d3f Mon Sep 17 00:00:00 2001 From: Wonil Date: Sat, 29 Jul 2023 23:56:24 +0900 Subject: [PATCH] Update gson/src/test/java/com/google/gson/ToNumberPolicyTest.java Co-authored-by: Marcono1234 --- .../java/com/google/gson/ToNumberPolicyTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gson/src/test/java/com/google/gson/ToNumberPolicyTest.java b/gson/src/test/java/com/google/gson/ToNumberPolicyTest.java index d5c9896e17..4d6c7c41a4 100644 --- a/gson/src/test/java/com/google/gson/ToNumberPolicyTest.java +++ b/gson/src/test/java/com/google/gson/ToNumberPolicyTest.java @@ -70,18 +70,18 @@ public void testLongOrDouble() throws IOException { e = assertThrows(MalformedJsonException.class, () -> strategy.readNumber(fromString("NaN"))); assertThat(e).hasMessageThat().isEqualTo( - "Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $" - + "\nSee https://github.com/google/gson/blob/main/Troubleshooting.md#malformed-json"); + "Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $" + + "\nSee https://github.com/google/gson/blob/main/Troubleshooting.md#malformed-json"); e = assertThrows(MalformedJsonException.class, () -> strategy.readNumber(fromString("Infinity"))); assertThat(e).hasMessageThat().isEqualTo( - "Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $" - + "\nSee https://github.com/google/gson/blob/main/Troubleshooting.md#malformed-json"); + "Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $" + + "\nSee https://github.com/google/gson/blob/main/Troubleshooting.md#malformed-json"); e = assertThrows(MalformedJsonException.class, () -> strategy.readNumber(fromString("-Infinity"))); assertThat(e).hasMessageThat().isEqualTo( - "Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $" - + "\nSee https://github.com/google/gson/blob/main/Troubleshooting.md#malformed-json"); + "Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $" + + "\nSee https://github.com/google/gson/blob/main/Troubleshooting.md#malformed-json"); } @Test