Skip to content

Commit fc2878a

Browse files
committed
Fix checkstyle violation
See gh-42487
1 parent 9ea6246 commit fc2878a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/json/BasicJsonParser.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ private List<String> tokenize(String json) {
142142
case '}' -> inObject--;
143143
case '[' -> inList++;
144144
case ']' -> inList--;
145-
case '"' -> inValue = !inValue;
145+
}
146+
if (current == '"') {
147+
inValue = !inValue;
146148
}
147149
if (current == ',' && inObject == 0 && inList == 0 && !inValue) {
148150
list.add(build.toString());

0 commit comments

Comments
 (0)