Fix a mistaken use of StringBuilder('#'). (#2052)

This commit is contained in:
Éamonn McManus 2022-01-12 08:58:30 -08:00 committed by GitHub
parent 73216b2ad7
commit 26e08fe742
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(' ');
}