tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1037659 - /tomcat/trunk/java/org/apache/catalina/manager/JspHelper.java
Date Mon, 22 Nov 2010 10:18:17 GMT
Author: markt
Date: Mon Nov 22 10:18:17 2010
New Revision: 1037659

URL: http://svn.apache.org/viewvc?rev=1037659&view=rev
Log:
Simplify escapeXml(Object)

Modified:
    tomcat/trunk/java/org/apache/catalina/manager/JspHelper.java

Modified: tomcat/trunk/java/org/apache/catalina/manager/JspHelper.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/manager/JspHelper.java?rev=1037659&r1=1037658&r2=1037659&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/manager/JspHelper.java (original)
+++ tomcat/trunk/java/org/apache/catalina/manager/JspHelper.java Mon Nov 22 10:18:17 2010
@@ -176,7 +176,7 @@ public class JspHelper {
     public static String escapeXml(Object obj) {
         String value = null;
         try {
-            value = (obj == null) ? null : String.valueOf(obj);
+            value = (obj == null) ? null : obj.toString();
         } catch (Exception e) {
             // Ignore
         }



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


Mime
View raw message