mirror of https://github.com/apache/lucene.git
String#isBlank() is java 11 API
This commit is contained in:
parent
bb3d4e41f0
commit
888fe76a09
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue