String#isBlank() is java 11 API

This commit is contained in:
noble 2019-10-07 09:47:23 +11:00
parent bb3d4e41f0
commit 888fe76a09
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ public class AnnotatedApi extends Api implements PermissionNameProvider {
for (Method method : klas.getMethods()) { for (Method method : klas.getMethods()) {
Command command = method.getAnnotation(Command.class); 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)); cmds.put(command.name(), AnnotatedApi.createSchema(method));
} }
} }