Author: cbrisson
Date: Wed Aug 21 16:44:12 2019
New Revision: 1865634

URL: http://svn.apache.org/viewvc?rev=1865634&view=rev
Log:
[engine][VELOCITY-917] Remove obsolete code

Modified:
    
velocity/engine/branches/parser_experiments/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java

Modified: 
velocity/engine/branches/parser_experiments/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java
URL: 
http://svn.apache.org/viewvc/velocity/engine/branches/parser_experiments/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java?rev=1865634&r1=1865633&r2=1865634&view=diff
==============================================================================
--- 
velocity/engine/branches/parser_experiments/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java
 (original)
+++ 
velocity/engine/branches/parser_experiments/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java
 Wed Aug 21 16:44:12 2019
@@ -405,9 +405,9 @@ public class RuntimeInstance implements
         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);
         }


Reply via email to