geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r1406742 - /geronimo/external/trunk/tomcat-parent-7.0.27/jasper/src/main/java/org/apache/jasper/compiler/Generator.java
Date Wed, 07 Nov 2012 18:03:29 GMT
Author: gawor
Date: Wed Nov  7 18:03:28 2012
New Revision: 1406742

URL: http://svn.apache.org/viewvc?rev=1406742&view=rev
Log:
no need to create a new string object - https://issues.apache.org/bugzilla/show_bug.cgi?id=54017

Modified:
    geronimo/external/trunk/tomcat-parent-7.0.27/jasper/src/main/java/org/apache/jasper/compiler/Generator.java

Modified: geronimo/external/trunk/tomcat-parent-7.0.27/jasper/src/main/java/org/apache/jasper/compiler/Generator.java
URL: http://svn.apache.org/viewvc/geronimo/external/trunk/tomcat-parent-7.0.27/jasper/src/main/java/org/apache/jasper/compiler/Generator.java?rev=1406742&r1=1406741&r2=1406742&view=diff
==============================================================================
--- geronimo/external/trunk/tomcat-parent-7.0.27/jasper/src/main/java/org/apache/jasper/compiler/Generator.java
(original)
+++ geronimo/external/trunk/tomcat-parent-7.0.27/jasper/src/main/java/org/apache/jasper/compiler/Generator.java
Wed Nov  7 18:03:28 2012
@@ -3176,7 +3176,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 "("



Mime
View raw message