From 3ce5dedb3c4f7c17f18bc1f9b191fd8e1d42c561 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 9 Jan 2025 17:19:01 +0100 Subject: [PATCH] Whitespace after the quote character is skipped. This fixes this. --- Signed-off-by: github-actions Signed-off-by: github-actions --- aQute.libg/src/aQute/lib/json/JSONCodec.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aQute.libg/src/aQute/lib/json/JSONCodec.java b/aQute.libg/src/aQute/lib/json/JSONCodec.java index 4d1fe852c5..cd76dbf94b 100644 --- a/aQute.libg/src/aQute/lib/json/JSONCodec.java +++ b/aQute.libg/src/aQute/lib/json/JSONCodec.java @@ -390,7 +390,7 @@ protected String parseString(Decoder r) throws Exception { char quote = (char) r.current(); assert r.current() == '"' || (promiscuous && r.current == '\''); - int c = r.next(); // skip first " + int c = r.read(); // skip first " StringBuilder sb = new StringBuilder(); while (c != quote) {