incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [3/6] git commit: Making fields final.
Date Sun, 30 Jun 2013 02:10:36 GMT
Making fields final.


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

Branch: refs/heads/master
Commit: e333174c6643173fc3c36f84b40e5dc29ddd30a9
Parents: 0ed107b
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Sat Jun 29 19:14:45 2013 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Sat Jun 29 19:14:45 2013 -0400

----------------------------------------------------------------------
 .../org/apache/blur/lucene/search/StopExecutionCollector.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e333174c/blur-query/src/main/java/org/apache/blur/lucene/search/StopExecutionCollector.java
----------------------------------------------------------------------
diff --git a/blur-query/src/main/java/org/apache/blur/lucene/search/StopExecutionCollector.java
b/blur-query/src/main/java/org/apache/blur/lucene/search/StopExecutionCollector.java
index bb6727a..9c605f3 100644
--- a/blur-query/src/main/java/org/apache/blur/lucene/search/StopExecutionCollector.java
+++ b/blur-query/src/main/java/org/apache/blur/lucene/search/StopExecutionCollector.java
@@ -30,7 +30,7 @@ public class StopExecutionCollector extends Collector {
 
   private final Collector _collector;
   private final AtomicBoolean _running;
-  private long _last;
+  private long last;
 
   public StopExecutionCollector(Collector collector, AtomicBoolean running) {
     _collector = collector;
@@ -47,11 +47,11 @@ public class StopExecutionCollector extends Collector {
 
   public void collect(int doc) throws IOException {
     long now = System.nanoTime();
-    if (_last + _5MS < now) {
+    if (last + _5MS < now) {
       if (!_running.get()) {
         throw new StopExecutionCollectorException();
       }
-      _last = now;
+      last = now;
     }
     _collector.collect(doc);
   }


Mime
View raw message