EventListenerSupport: Fix string format of Validate#isTrue call in constructor.

This commit is contained in:
pascalschumacher 2019-12-20 12:45:22 +01:00
parent 1e70575586
commit 325d9a97d6
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ public EventListenerSupport(final Class<L> listenerInterface, final ClassLoader
this(); this();
Validate.notNull(listenerInterface, "Listener interface cannot be null."); Validate.notNull(listenerInterface, "Listener interface cannot be null.");
Validate.notNull(classLoader, "ClassLoader cannot be null."); Validate.notNull(classLoader, "ClassLoader cannot be null.");
Validate.isTrue(listenerInterface.isInterface(), "Class {0} is not an interface", Validate.isTrue(listenerInterface.isInterface(), "Class %s is not an interface",
listenerInterface.getName()); listenerInterface.getName());
initializeTransientFields(listenerInterface, classLoader); initializeTransientFields(listenerInterface, classLoader);
} }