diff options
author | Claude Brisson <cbrisson@apache.org> | 2019-08-21 16:44:12 +0000 |
---|---|---|
committer | Claude Brisson <cbrisson@apache.org> | 2019-08-21 16:44:12 +0000 |
commit | 204c6cb6e414e9550b79cc55219fc7c1b785db51 (patch) | |
tree | 5a7f9eda50199373469a6592504f12d2c89ebc55 /velocity-engine-core/src/main/java/org/apache/velocity/runtime | |
parent | 1c227949491835a8334b62125268a2db3b7b770a (diff) | |
download | apache-velocity-engine-204c6cb6e414e9550b79cc55219fc7c1b785db51.tar.gz |
[engine][VELOCITY-917] Remove obsolete code
git-svn-id: https://svn.apache.org/repos/asf/velocity/engine/branches/parser_experiments@1865634 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'velocity-engine-core/src/main/java/org/apache/velocity/runtime')
-rw-r--r-- | velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java index 6971fbbb..8b27fb74 100644 --- a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java +++ b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java @@ -405,9 +405,9 @@ public class RuntimeInstance implements RuntimeConstants, RuntimeServices String configuredChar = getString(configKey); if (configuredChar != null) { - if (configuredChar.length() != 2 || configuredChar.getBytes(StandardCharsets.UTF_8).length != 1) + if (configuredChar.length() != 1) { - throw new RuntimeException(configKey + " must be a single byte UTF-8 character"); + throw new RuntimeException(configKey + " must be a single UTF-8 character"); } return configuredChar.charAt(0); } |