You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by pa...@apache.org on 2019/12/20 11:46:38 UTC

[commons-lang] branch master updated: EventListenerSupport: Fix string format of Validate#isTrue call in constructor.

This is an automated email from the ASF dual-hosted git repository.

pascalschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new 325d9a9  EventListenerSupport: Fix string format of Validate#isTrue call in constructor.
325d9a9 is described below

commit 325d9a97d6265722c747f02bcc7b21b2bd6757a0
Author: pascalschumacher <pa...@gmx.net>
AuthorDate: Fri Dec 20 12:45:22 2019 +0100

    EventListenerSupport: Fix string format of Validate#isTrue call in constructor.
---
 src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java b/src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java
index 42fc68d..1813375 100644
--- a/src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java
+++ b/src/main/java/org/apache/commons/lang3/event/EventListenerSupport.java
@@ -142,7 +142,7 @@ public class EventListenerSupport<L> implements Serializable {
         this();
         Validate.notNull(listenerInterface, "Listener interface 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());
         initializeTransientFields(listenerInterface, classLoader);
     }