camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [05/12] camel git commit: CAMEL-10490 CheckStyle warnings
Date Wed, 30 Nov 2016 14:49:34 GMT
CAMEL-10490 CheckStyle warnings


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/f7586ffb
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f7586ffb
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f7586ffb

Branch: refs/heads/master
Commit: f7586ffb04d4d8373856f899b3ed4b8095ad7ed9
Parents: 6795c11
Author: Bob Gaudaen <bob.gaudaen@gmail.com>
Authored: Wed Nov 30 14:17:21 2016 +0100
Committer: Bob Gaudaen <bob.gaudaen@gmail.com>
Committed: Wed Nov 30 14:28:29 2016 +0100

----------------------------------------------------------------------
 .../apache/camel/component/jpa/JpaPollingConsumer.java    |  2 +-
 .../processor/jpa/JpaPollingConsumerLockEntityTest.java   | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/f7586ffb/components/camel-jpa/src/main/java/org/apache/camel/component/jpa/JpaPollingConsumer.java
----------------------------------------------------------------------
diff --git a/components/camel-jpa/src/main/java/org/apache/camel/component/jpa/JpaPollingConsumer.java
b/components/camel-jpa/src/main/java/org/apache/camel/component/jpa/JpaPollingConsumer.java
index 8b085ad..6855548 100644
--- a/components/camel-jpa/src/main/java/org/apache/camel/component/jpa/JpaPollingConsumer.java
+++ b/components/camel-jpa/src/main/java/org/apache/camel/component/jpa/JpaPollingConsumer.java
@@ -27,9 +27,9 @@ import java.util.concurrent.TimeoutException;
 import javax.persistence.Entity;
 import javax.persistence.EntityManager;
 import javax.persistence.EntityManagerFactory;
-import javax.persistence.Query;
 import javax.persistence.LockModeType;
 import javax.persistence.PersistenceException;
+import javax.persistence.Query;
 
 import org.apache.camel.Exchange;
 import org.apache.camel.impl.PollingConsumerSupport;

http://git-wip-us.apache.org/repos/asf/camel/blob/f7586ffb/components/camel-jpa/src/test/java/org/apache/camel/processor/jpa/JpaPollingConsumerLockEntityTest.java
----------------------------------------------------------------------
diff --git a/components/camel-jpa/src/test/java/org/apache/camel/processor/jpa/JpaPollingConsumerLockEntityTest.java
b/components/camel-jpa/src/test/java/org/apache/camel/processor/jpa/JpaPollingConsumerLockEntityTest.java
index 89b3a47..e3ae8bc 100644
--- a/components/camel-jpa/src/test/java/org/apache/camel/processor/jpa/JpaPollingConsumerLockEntityTest.java
+++ b/components/camel-jpa/src/test/java/org/apache/camel/processor/jpa/JpaPollingConsumerLockEntityTest.java
@@ -16,6 +16,10 @@
  */
 package org.apache.camel.processor.jpa;
 
+import java.util.HashMap;
+import java.util.Map;
+import javax.persistence.OptimisticLockException;
+
 import org.apache.camel.Exchange;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
@@ -25,10 +29,6 @@ import org.apache.camel.spring.SpringRouteBuilder;
 import org.junit.Before;
 import org.junit.Test;
 
-import javax.persistence.OptimisticLockException;
-import java.util.HashMap;
-import java.util.Map;
-
 public class JpaPollingConsumerLockEntityTest extends AbstractJpaTest {
     protected static final String SELECT_ALL_STRING = "select x from " + Customer.class.getName()
+ " x";
 
@@ -94,7 +94,7 @@ public class JpaPollingConsumerLockEntityTest extends AbstractJpaTest {
                     @Override
                     public Exchange aggregate(Exchange originalExchange, Exchange jpaExchange)
{
                         Customer customer = jpaExchange.getIn().getBody(Customer.class);
-                        customer.setOrderCount(customer.getOrderCount()+1);
+                        customer.setOrderCount(customer.getOrderCount() + 1);
 
                         return jpaExchange;
                     }


Mime
View raw message