mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-26 20:09:02 +00:00
Polish
Closes gh-11724
This commit is contained in:
+1
-1
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user