camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [2/6] git commit: CAMEL-7803 Fixed the CS errors
Date Tue, 16 Sep 2014 13:08:02 GMT
CAMEL-7803 Fixed the CS errors


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

Branch: refs/heads/camel-2.14.x
Commit: 922e849e15c888653e4325ee2e72b224afbba373
Parents: 43b7c8e
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Tue Sep 16 20:53:52 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Tue Sep 16 21:04:04 2014 +0800

----------------------------------------------------------------------
 .../component/jdbc/DefaultJdbcPrepareStatementStrategy.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/922e849e/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/DefaultJdbcPrepareStatementStrategy.java
----------------------------------------------------------------------
diff --git a/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/DefaultJdbcPrepareStatementStrategy.java
b/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/DefaultJdbcPrepareStatementStrategy.java
index b412ff2..a88fd0e 100644
--- a/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/DefaultJdbcPrepareStatementStrategy.java
+++ b/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/DefaultJdbcPrepareStatementStrategy.java
@@ -72,8 +72,8 @@ public class DefaultJdbcPrepareStatementStrategy implements JdbcPrepareStatement
                 return new Iterator<Object>() {
                     private NamedQueryParser parser = new NamedQueryParser(query);
                     private Object next;
-                    private boolean done = false;
-                    private boolean preFetched = false;
+                    private boolean done;
+                    private boolean preFetched;
 
                     @Override
                     public boolean hasNext() {
@@ -81,7 +81,7 @@ public class DefaultJdbcPrepareStatementStrategy implements JdbcPrepareStatement
                             next();
                             preFetched = true;
                         }
-                        return (!done);
+                        return !done;
                     }
 
                     @Override


Mime
View raw message