freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddek...@apache.org
Subject incubator-freemarker git commit: Fixed wrong IllegalArgumentException message in setAutoImports
Date Sat, 25 Mar 2017 10:51:06 GMT
Repository: incubator-freemarker
Updated Branches:
  refs/heads/2.3-gae 87ab46c04 -> d4e4def7f


Fixed wrong IllegalArgumentException message in setAutoImports


Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/d4e4def7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/d4e4def7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/d4e4def7

Branch: refs/heads/2.3-gae
Commit: d4e4def7f859f2106afe0a3a5dfecfe1ce8b7d6b
Parents: 87ab46c
Author: ddekany <ddekany@apache.org>
Authored: Sat Mar 25 11:51:01 2017 +0100
Committer: ddekany <ddekany@apache.org>
Committed: Sat Mar 25 11:51:01 2017 +0100

----------------------------------------------------------------------
 src/main/java/freemarker/core/Configurable.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/d4e4def7/src/main/java/freemarker/core/Configurable.java
----------------------------------------------------------------------
diff --git a/src/main/java/freemarker/core/Configurable.java b/src/main/java/freemarker/core/Configurable.java
index 84264c6..16beca8 100644
--- a/src/main/java/freemarker/core/Configurable.java
+++ b/src/main/java/freemarker/core/Configurable.java
@@ -1796,7 +1796,7 @@ public class Configurable {
                 Object value = entry.getValue();
                 if (!(value instanceof String)) {
                     throw new IllegalArgumentException(
-                            "Value in Map wasn't a String, but a(n) " + key.getClass().getName()
+ ".");
+                            "Value in Map wasn't a String, but a(n) " + value.getClass().getName()
+ ".");
                 }
                 
                 addAutoImport((String) key, (String) value);


Mime
View raw message