Browse Source

Polish

Closes gh-11724
pull/11466/merge
dreis2211 8 years ago committed by Phillip Webb
parent
commit
b7e663e820
  1. 2
      spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONTokener.java

2
spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONTokener.java

@ -279,7 +279,7 @@ public class JSONTokener { @@ -279,7 +279,7 @@ public class JSONTokener {
private Object readLiteral() throws JSONException {
String literal = nextToInternal("{}[]/\\:,=;# \t\f");
if (literal.length() == 0) {
if (literal.isEmpty()) {
throw syntaxError("Expected literal value");
}
else if ("null".equalsIgnoreCase(literal)) {

Loading…
Cancel
Save