You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2008/04/03 18:01:18 UTC

svn commit: r644385 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/EndpointController.java

Author: dims
Date: Thu Apr  3 09:01:17 2008
New Revision: 644385

URL: http://svn.apache.org/viewvc?rev=644385&view=rev
Log:
just check using the booleanValue. we should not be comparing two reference values using the == or != operator

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/EndpointController.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/EndpointController.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/EndpointController.java?rev=644385&r1=644384&r2=644385&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/EndpointController.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/EndpointController.java Thu Apr  3 09:01:17 2008
@@ -469,7 +469,7 @@
 
         Boolean value = (Boolean)
                 requestMsgContext.getAxisMessageContext().getProperty(Constants.SAVE_REQUEST_MSG);
-        if (value != null && value == Boolean.TRUE) {
+        if (value != null && value.booleanValue()) {
             // REVIEW: This does not properly account for attachments.
             Message m = requestMsgContext.getMessage();
             String savedMsg = m.getAsOMElement().toString();
@@ -487,7 +487,7 @@
 
         Boolean value = (Boolean)
                 requestMsgContext.getAxisMessageContext().getProperty(Constants.SAVE_REQUEST_MSG);
-        if (value != null && value == Boolean.TRUE) {
+        if (value != null && value.booleanValue()) {
             // REVIEW: This does not properly account for attachments.
             String savedMsg = (String)requestMsgContext.getAxisMessageContext()
                     .getProperty(Constants.SAVED_REQUEST_MSG_TEXT);



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org