incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [2/2] git commit: Fixed a misake on a refactor that was using an empty list for all fields to loag in the field manager.
Date Fri, 23 Aug 2013 08:43:44 GMT
Fixed a misake on a refactor that was using an empty list for all fields to loag in the field
manager.


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

Branch: refs/heads/master
Commit: 4fc43e954538b8169eae78e85a23300e483f5142
Parents: f564924
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Fri Aug 23 04:42:23 2013 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Fri Aug 23 04:42:23 2013 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/blur/analysis/HdfsFieldManager.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/4fc43e95/blur-query/src/main/java/org/apache/blur/analysis/HdfsFieldManager.java
----------------------------------------------------------------------
diff --git a/blur-query/src/main/java/org/apache/blur/analysis/HdfsFieldManager.java b/blur-query/src/main/java/org/apache/blur/analysis/HdfsFieldManager.java
index 70f6c3c..3bd6a93 100644
--- a/blur-query/src/main/java/org/apache/blur/analysis/HdfsFieldManager.java
+++ b/blur-query/src/main/java/org/apache/blur/analysis/HdfsFieldManager.java
@@ -18,6 +18,7 @@ package org.apache.blur.analysis;
  */
 import java.io.IOException;
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
@@ -38,7 +39,7 @@ import org.apache.lucene.analysis.Analyzer;
 
 public class HdfsFieldManager extends BaseFieldManager {
 
-  private static final List<String> EMPTY_LIST = new ArrayList<String>();
+  private static final List<String> EMPTY_LIST = Arrays.asList(new String[]{});
 
   public static abstract class Lock {
 
@@ -98,7 +99,7 @@ public class HdfsFieldManager extends BaseFieldManager {
     if (listStatus == null) {
       return EMPTY_LIST;
     }
-    List<String> fieldNames = EMPTY_LIST;
+    List<String> fieldNames = new ArrayList<String>();
     for (FileStatus fileStatus : listStatus) {
       if (!fileStatus.isDir()) {
         fieldNames.add(fileStatus.getPath().getName());


Mime
View raw message