From a778ba1a3d4ff03ed4103569937317bf1dafb2bd Mon Sep 17 00:00:00 2001 From: Naros Date: Mon, 22 Jun 2015 09:18:24 -0500 Subject: [PATCH] Renamed debugMode to devMode. Renamed the debugMode variable to devMode. --- .../src/main/java/org/apache/struts2/json/JSONResult.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 2da32109e..ee2c58c5b 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;