Browse Source

Fix checkstyle violation

See gh-42487
pull/42503/head
Phillip Webb 1 year ago
parent
commit
fc2878a924
  1. 4
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/json/BasicJsonParser.java

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

@ -142,7 +142,9 @@ public class BasicJsonParser extends AbstractJsonParser { @@ -142,7 +142,9 @@ public class BasicJsonParser extends AbstractJsonParser {
case '}' -> inObject--;
case '[' -> inList++;
case ']' -> inList--;
case '"' -> inValue = !inValue;
}
if (current == '"') {
inValue = !inValue;
}
if (current == ',' && inObject == 0 && inList == 0 && !inValue) {
list.add(build.toString());

Loading…
Cancel
Save