You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by il...@apache.org on 2016/04/04 12:58:40 UTC
cxf git commit: [CXF-6845] Partially reverting the change in
MessageUtils#isOutbound due to test failures
Repository: cxf
Updated Branches:
refs/heads/master 8b3b47773 -> 3a8661b2f
[CXF-6845] Partially reverting the change in MessageUtils#isOutbound due to test failures
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/3a8661b2
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/3a8661b2
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/3a8661b2
Branch: refs/heads/master
Commit: 3a8661b2f3156e9889dff3986461033f3f5b0f19
Parents: 8b3b477
Author: Francesco Chicchiriccò <il...@apache.org>
Authored: Mon Apr 4 12:57:17 2016 +0200
Committer: Francesco Chicchiriccò <il...@apache.org>
Committed: Mon Apr 4 12:58:35 2016 +0200
----------------------------------------------------------------------
.../main/java/org/apache/cxf/message/MessageUtils.java | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cxf/blob/3a8661b2/core/src/main/java/org/apache/cxf/message/MessageUtils.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/cxf/message/MessageUtils.java b/core/src/main/java/org/apache/cxf/message/MessageUtils.java
index b7f8137..5bcfe23 100644
--- a/core/src/main/java/org/apache/cxf/message/MessageUtils.java
+++ b/core/src/main/java/org/apache/cxf/message/MessageUtils.java
@@ -42,10 +42,13 @@ public final class MessageUtils {
* @return true if the message direction is outbound
*/
public static boolean isOutbound(Message message) {
- return message != null
- && message.getExchange() != null
- && (message == message.getExchange().getOutMessage()
- || message == message.getExchange().getOutFaultMessage());
+ if (message == null) {
+ return false;
+ }
+
+ Exchange exchange = message.getExchange();
+ return exchange != null
+ && (message == exchange.getOutMessage() || message == exchange.getOutFaultMessage());
}
/**