struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [2/5] struts git commit: Renamed debugMode to devMode.
Date Fri, 26 Jun 2015 19:45:41 GMT
Renamed debugMode to devMode.

Renamed the debugMode variable to devMode.


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/a778ba1a
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/a778ba1a
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/a778ba1a

Branch: refs/heads/master
Commit: a778ba1a3d4ff03ed4103569937317bf1dafb2bd
Parents: 30df43f
Author: Naros <crancran.git@gmail.com>
Authored: Mon Jun 22 09:18:24 2015 -0500
Committer: Naros <crancran.git@gmail.com>
Committed: Mon Jun 22 09:18:24 2015 -0500

----------------------------------------------------------------------
 .../json/src/main/java/org/apache/struts2/json/JSONResult.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/a778ba1a/plugins/json/src/main/java/org/apache/struts2/json/JSONResult.java
----------------------------------------------------------------------
diff --git a/plugins/json/src/main/java/org/apache/struts2/json/JSONResult.java b/plugins/json/src/main/java/org/apache/struts2/json/JSONResult.java
index 2da3210..ee2c58c 100644
--- a/plugins/json/src/main/java/org/apache/struts2/json/JSONResult.java
+++ b/plugins/json/src/main/java/org/apache/struts2/json/JSONResult.java
@@ -96,7 +96,7 @@ public class JSONResult implements Result {
     private String contentType;
     private String wrapPrefix;
     private String wrapSuffix;
-    private boolean debugMode = false;
+    private boolean devMode = false;
     
     @Inject(StrutsConstants.STRUTS_I18N_ENCODING)
     public void setDefaultEncoding(String val) {
@@ -105,7 +105,7 @@ public class JSONResult implements Result {
     
     @Inject(StrutsConstants.STRUTS_DEVMODE) 
     public void setDebugMode(String val) {
-    	this.debugMode = BooleanUtils.toBoolean(val);
+    	this.devMode = BooleanUtils.toBoolean(val);
     }
     
     /**
@@ -183,7 +183,7 @@ public class JSONResult implements Result {
         HttpServletResponse response = (HttpServletResponse) actionContext.get(StrutsStatics.HTTP_RESPONSE);
         
         // only permit caching bean information when struts devMode = false
-        cacheBeanInfo = !debugMode;
+        cacheBeanInfo = !devMode;
         
         try {
             Object rootObject;


Mime
View raw message