camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [6/6] git commit: CAMEL-7803 Fixed the CS errors
Date Tue, 16 Sep 2014 13:08:06 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/bde9a447
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/bde9a447
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/bde9a447

Branch: refs/heads/camel-2.12.x
Commit: bde9a447a75ff8253316a7da260c9fbbfc2db0d6
Parents: bb1c68c
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:05:17 2014 +0800

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


http://git-wip-us.apache.org/repos/asf/camel/blob/bde9a447/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