aboutsummaryrefslogtreecommitdiff
path: root/velocity-engine-core/src
diff options
context:
space:
mode:
authorClaude Brisson <cbrisson@apache.org>2019-08-21 16:44:12 +0000
committerClaude Brisson <cbrisson@apache.org>2019-08-21 16:44:12 +0000
commit204c6cb6e414e9550b79cc55219fc7c1b785db51 (patch)
tree5a7f9eda50199373469a6592504f12d2c89ebc55 /velocity-engine-core/src
parent1c227949491835a8334b62125268a2db3b7b770a (diff)
downloadapache-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')
-rw-r--r--velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java4
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);
}