cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1542307 - /cxf/trunk/core/src/main/java/org/apache/cxf/phase/PhaseInterceptorChain.java
Date Fri, 15 Nov 2013 16:16:31 GMT
Author: sergeyb
Date: Fri Nov 15 16:16:31 2013
New Revision: 1542307

URL: http://svn.apache.org/r1542307
Log:
[CXF-5373] Minor update to PhaseInterceptorChain to support cases (possibly unlikely) of pahse
chains having a single interceptor only

Modified:
    cxf/trunk/core/src/main/java/org/apache/cxf/phase/PhaseInterceptorChain.java

Modified: cxf/trunk/core/src/main/java/org/apache/cxf/phase/PhaseInterceptorChain.java
URL: http://svn.apache.org/viewvc/cxf/trunk/core/src/main/java/org/apache/cxf/phase/PhaseInterceptorChain.java?rev=1542307&r1=1542306&r2=1542307&view=diff
==============================================================================
--- cxf/trunk/core/src/main/java/org/apache/cxf/phase/PhaseInterceptorChain.java (original)
+++ cxf/trunk/core/src/main/java/org/apache/cxf/phase/PhaseInterceptorChain.java Fri Nov 15
16:16:31 2013
@@ -167,9 +167,14 @@ public class PhaseInterceptorChain imple
             if (chain.iterator.next() instanceof ServiceInvokerInterceptor) {
                 CURRENT_MESSAGE.set(m);
                 return true;
+            } else {
+                String error = "Only ServiceInvokerInterceptor can update the current chain
message";
+                LOG.warning(error);
+                throw new IllegalStateException(error);   
             }
         }
-        throw new IllegalStateException("Only ServiceInvokerInterceptor can update the current
chain message");
+        return false;
+        
     }
     
     public synchronized State getState() {



Mime
View raw message