This is an automated email from the ASF dual-hosted git repository. ntimofeev pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cayenne.git
The following commit(s) were added to refs/heads/master by this push: new a23c81b Add quotes in a message to easier catch spaces in a class name a23c81b is described below commit a23c81ba4d1808133e7e4f7c37ee1466b96e338b Author: Nikita Timofeev <stari...@gmail.com> AuthorDate: Mon Feb 3 16:11:03 2020 +0300 Add quotes in a message to easier catch spaces in a class name --- .../java/org/apache/cayenne/di/spi/DefaultAdhocObjectFactory.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cayenne-di/src/main/java/org/apache/cayenne/di/spi/DefaultAdhocObjectFactory.java b/cayenne-di/src/main/java/org/apache/cayenne/di/spi/DefaultAdhocObjectFactory.java index 21c0419..d3eb1ee 100644 --- a/cayenne-di/src/main/java/org/apache/cayenne/di/spi/DefaultAdhocObjectFactory.java +++ b/cayenne-di/src/main/java/org/apache/cayenne/di/spi/DefaultAdhocObjectFactory.java @@ -125,11 +125,11 @@ public class DefaultAdhocObjectFactory implements AdhocObjectFactory { } } - throw new DIRuntimeException("Invalid class: %s", e, className); + throw new DIRuntimeException("Invalid class: '%s'", e, className); } if (className.length() < 3) { - throw new IllegalArgumentException("Invalid class name: " + className); + throw new IllegalArgumentException("Invalid class name: '" + className + "'"); } // TODO: support for multi-dim arrays @@ -156,7 +156,7 @@ public class DefaultAdhocObjectFactory implements AdhocObjectFactory { try { return Class.forName("[L" + className + ";", true, classLoader); } catch (ClassNotFoundException e1) { - throw new DIRuntimeException("Invalid class: %s", e1, className); + throw new DIRuntimeException("Invalid class: '%s'", e1, className); } } }