Silence meaningless warnings from JarScanner
Don't log warnings when annotationName is null. Change-Id: Ib7ef7490b1525a0d33ea09de6169ebde7759fb59 Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
This commit is contained in:
@@ -107,14 +107,14 @@ public class JarScanner implements PluginContentScanner {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (def.isConcrete()) {
|
if (!Strings.isNullOrEmpty(def.annotationName)) {
|
||||||
if (!Strings.isNullOrEmpty(def.annotationName)) {
|
if (def.isConcrete()) {
|
||||||
rawMap.put(def.annotationName, def);
|
rawMap.put(def.annotationName, def);
|
||||||
|
} else {
|
||||||
|
PluginLoader.log.warn(String.format(
|
||||||
|
"Plugin %s tries to @%s(\"%s\") abstract class %s", pluginName,
|
||||||
|
def.annotationName, def.annotationValue, def.className));
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
PluginLoader.log.warn(String.format(
|
|
||||||
"Plugin %s tries to @%s(\"%s\") abstract class %s", pluginName,
|
|
||||||
def.annotationName, def.annotationValue, def.className));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user