axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r644385 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/EndpointController.java
Date Thu, 03 Apr 2008 16:01:18 GMT
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


Mime
View raw message