summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTatu Lund <tatu@vaadin.com>2019-09-09 09:15:44 +0300
committerAnna Koskinen <Ansku@users.noreply.github.com>2019-09-09 09:15:44 +0300
commit1e36e3097fe4c42f358ed5dcd11a1003588a9162 (patch)
treea42b3a9a3b31f1c8f0d180a843c11f6f251c0df7
parent42fa4b0feed41fdc7f1b8867ec31f4e9e5cba286 (diff)
downloadvaadin-framework-1e36e3097fe4c42f358ed5dcd11a1003588a9162.tar.gz
vaadin-framework-1e36e3097fe4c42f358ed5dcd11a1003588a9162.zip
Correct usage of String.format(..) (#11704)
Fixes https://github.com/vaadin/framework/issues/11701
-rw-r--r--server/src/main/java/com/vaadin/util/ReflectTools.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/src/main/java/com/vaadin/util/ReflectTools.java b/server/src/main/java/com/vaadin/util/ReflectTools.java
index 245b864169..47249e4539 100644
--- a/server/src/main/java/com/vaadin/util/ReflectTools.java
+++ b/server/src/main/java/com/vaadin/util/ReflectTools.java
@@ -32,12 +32,12 @@ import java.lang.reflect.Modifier;
*/
public class ReflectTools implements Serializable {
- static final String CREATE_INSTANCE_FAILED = "Unable to create an instance of {0}. Make sure it has a no-arg constructor";
- static final String CREATE_INSTANCE_FAILED_FOR_NON_STATIC_MEMBER_CLASS = "Unable to create an instance of {0}. Make sure the class is static if it is a nested class.";
- static final String CREATE_INSTANCE_FAILED_ACCESS_EXCEPTION = "Unable to create an instance of {0}. Make sure the class is public and that is has a public no-arg constructor.";
- static final String CREATE_INSTANCE_FAILED_NO_PUBLIC_NOARG_CONSTRUCTOR = "Unable to create an instance of {0}. Make sure the class has a public no-arg constructor.";
+ static final String CREATE_INSTANCE_FAILED = "Unable to create an instance of '%s'. Make sure it has a no-arg constructor";
+ static final String CREATE_INSTANCE_FAILED_FOR_NON_STATIC_MEMBER_CLASS = "Unable to create an instance of '%s'. Make sure the class is static if it is a nested class.";
+ static final String CREATE_INSTANCE_FAILED_ACCESS_EXCEPTION = "Unable to create an instance of '%s'. Make sure the class is public and that is has a public no-arg constructor.";
+ static final String CREATE_INSTANCE_FAILED_NO_PUBLIC_NOARG_CONSTRUCTOR = "Unable to create an instance of '%s'. Make sure the class has a public no-arg constructor.";
static final String CREATE_INSTANCE_FAILED_LOCAL_CLASS = "Cannot instantiate local class '%s'. Move class declaration outside the method.";
- static final String CREATE_INSTANCE_FAILED_CONSTRUCTOR_THREW_EXCEPTION = "Unable to create an instance of {0}. The constructor threw an exception.";
+ static final String CREATE_INSTANCE_FAILED_CONSTRUCTOR_THREW_EXCEPTION = "Unable to create an instance of '%s'. The constructor threw an exception.";
/**
* Locates the method in the given class. Returns null if the method is not