struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject svn commit: r1507951 - /struts/struts2/trunk/plugins/json/src/main/java/org/apache/struts2/json/JSONResult.java
Date Mon, 29 Jul 2013 06:40:11 GMT
Author: lukaszlenart
Date: Mon Jul 29 06:40:10 2013
New Revision: 1507951

URL: http://svn.apache.org/r1507951
Log:
WW-3964 Defines DEFAULT_PARAM static field to reduce noise in the logs

Modified:
    struts/struts2/trunk/plugins/json/src/main/java/org/apache/struts2/json/JSONResult.java

Modified: struts/struts2/trunk/plugins/json/src/main/java/org/apache/struts2/json/JSONResult.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/json/src/main/java/org/apache/struts2/json/JSONResult.java?rev=1507951&r1=1507950&r2=1507951&view=diff
==============================================================================
--- struts/struts2/trunk/plugins/json/src/main/java/org/apache/struts2/json/JSONResult.java
(original)
+++ struts/struts2/trunk/plugins/json/src/main/java/org/apache/struts2/json/JSONResult.java
Mon Jul 29 06:40:10 2013
@@ -65,6 +65,11 @@ public class JSONResult implements Resul
 
     private static final Logger LOG = LoggerFactory.getLogger(JSONResult.class);
 
+    /**
+     * This result type doesn't have a default param, null is ok to reduce noise in logs
+     */
+    public static final String DEFAULT_PARAM = null;
+
     private String encoding;
     private String defaultEncoding = "ISO-8859-1";
     private List<Pattern> includeProperties;



Mime
View raw message