From b7e663e820a1f08cc31b0c8b73a762cd4bdb5a26 Mon Sep 17 00:00:00 2001 From: dreis2211 Date: Mon, 22 Jan 2018 20:20:30 +0100 Subject: [PATCH] Polish Closes gh-11724 --- .../boot/configurationprocessor/json/JSONTokener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONTokener.java b/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONTokener.java index e669830bc8..15c90e2627 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONTokener.java +++ b/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 { 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)) {