This is an automated email from the ASF dual-hosted git repository. robertlazarski pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git
commit c7a564fce6fdab73c1b2518fca98c28d39da4b04 Author: Robert Lazarski <robertlazar...@gmail.com> AuthorDate: Mon Mar 3 10:23:07 2025 -1000 Code clean up in JSONMessageHandler classes --- modules/json/src/org/apache/axis2/json/gson/JSONMessageHandler.java | 2 +- modules/json/src/org/apache/axis2/json/moshi/JSONMessageHandler.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/json/src/org/apache/axis2/json/gson/JSONMessageHandler.java b/modules/json/src/org/apache/axis2/json/gson/JSONMessageHandler.java index f64c90999f..6c48169829 100644 --- a/modules/json/src/org/apache/axis2/json/gson/JSONMessageHandler.java +++ b/modules/json/src/org/apache/axis2/json/gson/JSONMessageHandler.java @@ -75,7 +75,7 @@ public class JSONMessageHandler extends AbstractHandler { } else { log.debug("JSON MessageReceiver found, proceeding with the JSON request"); Object tempObj = msgContext.getProperty(JsonConstant.IS_JSON_STREAM); - if (tempObj != null && Boolean.valueOf(tempObj.toString()) { + if (tempObj != null && Boolean.valueOf(tempObj.toString())) { Object o = msgContext.getProperty(JsonConstant.GSON_XML_STREAM_READER); if (o != null) { GsonXMLStreamReader gsonXMLStreamReader = (GsonXMLStreamReader) o; diff --git a/modules/json/src/org/apache/axis2/json/moshi/JSONMessageHandler.java b/modules/json/src/org/apache/axis2/json/moshi/JSONMessageHandler.java index 7ad41bb1c8..404be6bc03 100644 --- a/modules/json/src/org/apache/axis2/json/moshi/JSONMessageHandler.java +++ b/modules/json/src/org/apache/axis2/json/moshi/JSONMessageHandler.java @@ -99,7 +99,7 @@ public class JSONMessageHandler extends AbstractHandler { log.debug("On enableJSONOnly=true Axis operation is null on JSON request, message hasn't been dispatched to an operation, proceeding on JSON message name discovery and AxisOperation mapping"); try{ Object tempObj = msgContext.getProperty(JsonConstant.IS_JSON_STREAM); - if (tempObj != null && Boolean.valueOf(tempObj.toString()) { + if (tempObj != null && Boolean.valueOf(tempObj.toString())) { Object o = msgContext.getProperty(JsonConstant.MOSHI_XML_STREAM_READER); if (o != null) { MoshiXMLStreamReader moshiXMLStreamReader = (MoshiXMLStreamReader) o;