Fix Checkstyle violations

See gh-23784
This commit is contained in:
Juergen Hoeller
2019-11-11 17:18:52 +01:00
parent a7a88371e7
commit c4ec6aea68
2 changed files with 27 additions and 25 deletions

View File

@@ -295,9 +295,11 @@ public class ApplicationListenerMethodAdapter implements GenericApplicationListe
@Nullable
protected Object doInvoke(Object... args) {
Object bean = getTargetBean();
// Detect package-protected NullBean instance through equals(null) check
if (bean.equals(null)) {
return null;
return null;
}
ReflectionUtils.makeAccessible(this.method);
try {
return this.method.invoke(bean, args);