cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r599350 - /incubator/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/ContextUtils.java
Date Thu, 29 Nov 2007 09:04:18 GMT
Author: mmao
Date: Thu Nov 29 01:04:17 2007
New Revision: 599350

URL: http://svn.apache.org/viewvc?rev=599350&view=rev
Log:
Forgot to revert the ContextUtils


Modified:
    incubator/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/ContextUtils.java

Modified: incubator/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/ContextUtils.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/ContextUtils.java?rev=599350&r1=599349&r2=599350&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/ContextUtils.java
(original)
+++ incubator/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/ContextUtils.java
Thu Nov 29 01:04:17 2007
@@ -152,10 +152,8 @@
     * @return true iff the current messaging role is that of requestor
     */
     public static boolean isRequestor(Message message) {
-        if (message.get(REQUESTOR_ROLE) instanceof Boolean) {
-            return ((Boolean)message.get(REQUESTOR_ROLE)).booleanValue();
-        }
-        return false;
+        Boolean requestor = (Boolean)message.get(REQUESTOR_ROLE);
+        return requestor != null && requestor.booleanValue();
     }
 
     /**



Mime
View raw message