tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1402122 - /tomcat/trunk/java/org/apache/jasper/compiler/Generator.java
Date Thu, 25 Oct 2012 12:14:09 GMT
Author: markt
Date: Thu Oct 25 12:14:09 2012
New Revision: 1402122

URL: http://svn.apache.org/viewvc?rev=1402122&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=54017
Simplify and reduce GC.

Modified:
    tomcat/trunk/java/org/apache/jasper/compiler/Generator.java

Modified: tomcat/trunk/java/org/apache/jasper/compiler/Generator.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/Generator.java?rev=1402122&r1=1402121&r2=1402122&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/compiler/Generator.java (original)
+++ tomcat/trunk/java/org/apache/jasper/compiler/Generator.java Thu Oct 25 12:14:09 2012
@@ -3174,7 +3174,7 @@ class Generator {
             } else if (c == Long.class) {
                 return JspUtil.coerceToLong(s, isNamedAttribute);
             } else if (c == Object.class) {
-                return "new String(" + quoted + ")";
+                return quoted;
             } else {
                 String className = c.getCanonicalName();
                 return "("



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


Mime
View raw message