Created
August 11, 2014 21:10
-
-
Save renaud/bc34a48ca22f787f6c11 to your computer and use it in GitHub Desktop.
Fixing UIMA Lucas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/uima-addons-2.3.1/Lucas$ st | |
M src/main/java/org/apache/uima/lucas/indexer/analysis/SplitterFilter.java | |
M pom.xml | |
/uima-addons-2.3.1/Lucas$ svn diff | |
Index: src/main/java/org/apache/uima/lucas/indexer/analysis/SplitterFilter.java | |
=================================================================== | |
--- src/main/java/org/apache/uima/lucas/indexer/analysis/SplitterFilter.java (revision 1347596) | |
+++ src/main/java/org/apache/uima/lucas/indexer/analysis/SplitterFilter.java (working copy) | |
@@ -20,6 +20,7 @@ | |
package org.apache.uima.lucas.indexer.analysis; | |
import java.io.IOException; | |
+import java.util.Arrays; | |
import java.util.Iterator; | |
import org.apache.lucene.analysis.Token; | |
@@ -51,8 +52,8 @@ | |
return null; | |
String tokenText = new String(currentToken.termBuffer(), 0, currentToken.termLength()); | |
- String[] splitts = tokenText.split(splitString); | |
- splitIterator = Iterators.forArray(splitts, 0, splitts.length); | |
+ final String[] splitts = tokenText.split(splitString); | |
+ splitIterator = Arrays.asList(splitts).iterator(); | |
} | |
if (!splitIterator.hasNext()) | |
Index: pom.xml | |
=================================================================== | |
--- pom.xml (revision 1347596) | |
+++ pom.xml (working copy) | |
@@ -106,10 +106,10 @@ | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
- <groupId>com.google.collections</groupId> | |
- <artifactId>google-collections</artifactId> | |
- <version>0.9</version> | |
- </dependency> | |
+ <groupId>com.google.guava</groupId> | |
+ <artifactId>guava</artifactId> | |
+ <version>13.0.1</version> | |
+ </dependency> | |
</dependencies> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment