From 888fe76a09e1b00ee99f024ad2dbe1e55e65fe42 Mon Sep 17 00:00:00 2001 From: noble Date: Mon, 7 Oct 2019 09:47:23 +1100 Subject: [PATCH] String#isBlank() is java 11 API --- solr/core/src/java/org/apache/solr/api/AnnotatedApi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/core/src/java/org/apache/solr/api/AnnotatedApi.java b/solr/core/src/java/org/apache/solr/api/AnnotatedApi.java index b1be4614ca3..cda2d646a13 100644 --- a/solr/core/src/java/org/apache/solr/api/AnnotatedApi.java +++ b/solr/core/src/java/org/apache/solr/api/AnnotatedApi.java @@ -108,7 +108,7 @@ public class AnnotatedApi extends Api implements PermissionNameProvider { for (Method method : klas.getMethods()) { Command command = method.getAnnotation(Command.class); - if (command != null && !command.name().isBlank()) { + if (command != null && !command.name().isEmpty()) { cmds.put(command.name(), AnnotatedApi.createSchema(method)); } }