tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1406384 - /tomcat/trunk/java/org/apache/jasper/runtime/JspRuntimeLibrary.java
Date Tue, 06 Nov 2012 22:35:56 GMT
Author: markt
Date: Tue Nov  6 22:35:55 2012
New Revision: 1406384

URL: http://svn.apache.org/viewvc?rev=1406384&view=rev
Log:
Remove unnecessary casts and comment that does not make sense

Modified:
    tomcat/trunk/java/org/apache/jasper/runtime/JspRuntimeLibrary.java

Modified: tomcat/trunk/java/org/apache/jasper/runtime/JspRuntimeLibrary.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/runtime/JspRuntimeLibrary.java?rev=1406384&r1=1406383&r2=1406384&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/runtime/JspRuntimeLibrary.java (original)
+++ tomcat/trunk/java/org/apache/jasper/runtime/JspRuntimeLibrary.java Tue Nov  6 22:35:55
2012
@@ -133,8 +133,7 @@ public class JspRuntimeLibrary {
         if (s == null || s.length() == 0) {
             return (char) 0;
         } else {
-            // this trick avoids escaping issues
-            return (char)(int) s.charAt(0);
+            return s.charAt(0);
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message