camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hadr...@apache.org
Subject svn commit: r703307 - in /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel: builder/RouteBuilder.java model/RedeliveryPolicyType.java
Date Fri, 10 Oct 2008 01:25:18 GMT
Author: hadrian
Date: Thu Oct  9 18:25:18 2008
New Revision: 703307

URL: http://svn.apache.org/viewvc?rev=703307&view=rev
Log:
CAMEL-861.  Minor change to replace deprecated api.

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/RouteBuilder.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RedeliveryPolicyType.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/RouteBuilder.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/RouteBuilder.java?rev=703307&r1=703306&r2=703307&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/RouteBuilder.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/RouteBuilder.java
Thu Oct  9 18:25:18 2008
@@ -143,7 +143,7 @@
     public ExceptionType onException(Class... exceptions) {
         ExceptionType last = null;
         for (Class ex : exceptions) {
-            last = last == null? onException(ex) : last.onException(ex);
+            last = last == null ? onException(ex) : last.onException(ex);
         }
         return last != null ? last : onException(Exception.class);
     }

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RedeliveryPolicyType.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RedeliveryPolicyType.java?rev=703307&r1=703306&r2=703307&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RedeliveryPolicyType.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/RedeliveryPolicyType.java
Thu Oct  9 18:25:18 2008
@@ -46,7 +46,7 @@
             answer.setMaximumRedeliveries(maximumRedeliveries);
         }
         if (initialRedeliveryDelay != null) {
-            answer.setInitialRedeliveryDelay(initialRedeliveryDelay);
+            answer.setDelay(initialRedeliveryDelay);
         }
         if (backOffMultiplier != null) {
             answer.setBackOffMultiplier(backOffMultiplier);



Mime
View raw message