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