You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2012/09/06 04:02:33 UTC

svn commit: r1381456 - /camel/trunk/camel-core/src/test/java/org/apache/camel/issues/RedeliveryPolicyOnExceptionWhileRedeliveringIssueTest.java

Author: ningjiang
Date: Thu Sep  6 02:02:33 2012
New Revision: 1381456

URL: http://svn.apache.org/viewvc?rev=1381456&view=rev
Log:
Fixed the CS error of camel-core

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/issues/RedeliveryPolicyOnExceptionWhileRedeliveringIssueTest.java

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/issues/RedeliveryPolicyOnExceptionWhileRedeliveringIssueTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/issues/RedeliveryPolicyOnExceptionWhileRedeliveringIssueTest.java?rev=1381456&r1=1381455&r2=1381456&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/issues/RedeliveryPolicyOnExceptionWhileRedeliveringIssueTest.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/issues/RedeliveryPolicyOnExceptionWhileRedeliveringIssueTest.java Thu Sep  6 02:02:33 2012
@@ -27,24 +27,29 @@ import org.apache.camel.builder.RouteBui
 public class RedeliveryPolicyOnExceptionWhileRedeliveringIssueTest extends ContextTestSupport {
 
     private class FirstException extends Exception {
+
+        private static final long serialVersionUID = 1L;
     }
 
     private class SecondException extends Exception {
+       
+        private static final long serialVersionUID = 1L;
     }
 
     private class ExceptionThrowingProcessor implements Processor {
 
         @Override
         public void process(Exchange exchange) throws Exception {
-            String camelRedeliveryCounter = exchange.getIn().getHeader(Exchange.REDELIVERY_COUNTER, String.class);
+            String camelRedeliveryCounter = exchange.getIn().getHeader(Exchange.REDELIVERY_COUNTER,
+                                                                       String.class);
             int redeliveries = camelRedeliveryCounter == null ? 0 : Integer.valueOf(camelRedeliveryCounter);
             switch (redeliveries) {
-                case 0:
-                    throw new FirstException();
-                case 1:
-                    throw new SecondException();
-                default:
-                    break; // no-op
+            case 0:
+                throw new FirstException();
+            case 1:
+                throw new SecondException();
+            default:
+                break; // no-op
             }
         }
     }