Skip to content

Commit

Permalink
Remove unnecessary null check.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralf0131 committed May 12, 2018
1 parent 616f629 commit d7047d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ private void loadClass(Map<String, Class<?>> extensionClasses, java.net.URL reso
clazz.getConstructor();
if (name == null || name.length() == 0) {
name = findAnnotationName(clazz);
if (name == null || name.length() == 0) {
if (name.length() == 0) {
throw new IllegalStateException("No such extension name for the class " + clazz.getName() + " in the config " + resourceURL);
}
}
Expand Down

0 comments on commit d7047d1

Please sign in to comment.