accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject accumulo git commit: ACCUMULO-2131 while statement used as if statement. Changed the while to an if.
Date Thu, 09 Apr 2015 21:31:51 GMT
Repository: accumulo
Updated Branches:
  refs/heads/master 8fbf2dce0 -> aac619c96


ACCUMULO-2131 while statement used as if statement. Changed the while to an if.

Signed-off-by: Christopher Tubbs <ctubbsii@apache.org>


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

Branch: refs/heads/master
Commit: aac619c969abf0b76dbaf88744a0408516d3c655
Parents: 8fbf2dc
Author: Bob Thorman <rt2357@att.com>
Authored: Mon Apr 6 09:51:27 2015 -0500
Committer: Christopher Tubbs <ctubbsii@apache.org>
Committed: Thu Apr 9 17:31:15 2015 -0400

----------------------------------------------------------------------
 .../accumulo/core/iterators/system/SourceSwitchingIterator.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/aac619c9/core/src/main/java/org/apache/accumulo/core/iterators/system/SourceSwitchingIterator.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/accumulo/core/iterators/system/SourceSwitchingIterator.java
b/core/src/main/java/org/apache/accumulo/core/iterators/system/SourceSwitchingIterator.java
index 6c40176..8e871da 100644
--- a/core/src/main/java/org/apache/accumulo/core/iterators/system/SourceSwitchingIterator.java
+++ b/core/src/main/java/org/apache/accumulo/core/iterators/system/SourceSwitchingIterator.java
@@ -146,7 +146,7 @@ public class SourceSwitchingIterator implements SortedKeyValueIterator<Key,Value
   }
 
   private boolean switchSource() throws IOException {
-    while (!source.isCurrent()) {
+    if (!source.isCurrent()) {
       source = source.getNewDataSource();
       iter = source.iterator();
       return true;


Mime
View raw message