You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by mm...@apache.org on 2007/11/29 10:04:18 UTC
svn commit: r599350 -
/incubator/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/ContextUtils.java
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();
}
/**