From 26e08fe742a9a023cc8eca454de8f84a0223d187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89amonn=20McManus?= Date: Wed, 12 Jan 2022 08:58:30 -0800 Subject: [PATCH] Fix a mistaken use of StringBuilder('#'). (#2052) --- gson/src/test/java/com/google/gson/stream/JsonReaderTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gson/src/test/java/com/google/gson/stream/JsonReaderTest.java b/gson/src/test/java/com/google/gson/stream/JsonReaderTest.java index d3054624..65cbd075 100644 --- a/gson/src/test/java/com/google/gson/stream/JsonReaderTest.java +++ b/gson/src/test/java/com/google/gson/stream/JsonReaderTest.java @@ -1734,7 +1734,7 @@ public final class JsonReaderTest extends TestCase { * Regression test for an issue with buffer filling and consumeNonExecutePrefix. */ public void testReadAcrossBuffers() throws IOException { - StringBuilder sb = new StringBuilder('#'); + StringBuilder sb = new StringBuilder("#"); for (int i = 0; i < JsonReader.BUFFER_SIZE - 3; i++) { sb.append(' '); }