Skip to content

Commit c7a564f

Browse files
Code clean up in JSONMessageHandler classes
1 parent 3fadd47 commit c7a564f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/json/src/org/apache/axis2/json/gson/JSONMessageHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public InvocationResponse invoke(MessageContext msgContext) throws AxisFault {
7575
} else {
7676
log.debug("JSON MessageReceiver found, proceeding with the JSON request");
7777
Object tempObj = msgContext.getProperty(JsonConstant.IS_JSON_STREAM);
78-
if (tempObj != null && Boolean.valueOf(tempObj.toString()) {
78+
if (tempObj != null && Boolean.valueOf(tempObj.toString())) {
7979
Object o = msgContext.getProperty(JsonConstant.GSON_XML_STREAM_READER);
8080
if (o != null) {
8181
GsonXMLStreamReader gsonXMLStreamReader = (GsonXMLStreamReader) o;

modules/json/src/org/apache/axis2/json/moshi/JSONMessageHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public InvocationResponse invoke(MessageContext msgContext) throws AxisFault {
9999
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");
100100
try{
101101
Object tempObj = msgContext.getProperty(JsonConstant.IS_JSON_STREAM);
102-
if (tempObj != null && Boolean.valueOf(tempObj.toString()) {
102+
if (tempObj != null && Boolean.valueOf(tempObj.toString())) {
103103
Object o = msgContext.getProperty(JsonConstant.MOSHI_XML_STREAM_READER);
104104
if (o != null) {
105105
MoshiXMLStreamReader moshiXMLStreamReader = (MoshiXMLStreamReader) o;

0 commit comments

Comments
 (0)