You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2008/05/09 07:08:48 UTC
svn commit: r654685 -
/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java
Author: davsclaus
Date: Thu May 8 22:08:48 2008
New Revision: 654685
URL: http://svn.apache.org/viewvc?rev=654685&view=rev
Log:
CAMEL-499 Applied patch with thanks. To fix compiling the source on HP-UX
Modified:
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java
Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java?rev=654685&r1=654684&r2=654685&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java Thu May 8 22:08:48 2008
@@ -868,8 +868,10 @@
public Type proceed() {
ProceedType proceed = null;
- if (this instanceof InterceptType) {
- proceed = ((InterceptType) this).getProceed();
+ ProcessorType currentProcessor = this;
+
+ if (currentProcessor instanceof InterceptType) {
+ proceed = ((InterceptType) currentProcessor).getProceed();
}
if (proceed == null) {
for (ProcessorType node = parent; node != null; node = node.getParent()) {
@@ -881,13 +883,12 @@
}
}
- if (this instanceof InterceptType) {
- proceed = ((InterceptType)this).getProceed();
+ if (currentProcessor instanceof InterceptType) {
+ proceed = ((InterceptType) currentProcessor).getProceed();
}
if (proceed == null) {
- throw new IllegalArgumentException(
- "Cannot use proceed() without being within an intercept() block");
+ throw new IllegalArgumentException("Cannot use proceed() without being within an intercept() block");
}
addOutput(proceed);