You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jo...@apache.org on 2012/03/12 16:12:09 UTC

svn commit: r1299705 - /opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/sentdetect/SentenceContentProvider.java

Author: joern
Date: Mon Mar 12 15:12:09 2012
New Revision: 1299705

URL: http://svn.apache.org/viewvc?rev=1299705&view=rev
Log:
OPENNLP-462 Fixed code to exclude sentences.

Modified:
    opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/sentdetect/SentenceContentProvider.java

Modified: opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/sentdetect/SentenceContentProvider.java
URL: http://svn.apache.org/viewvc/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/sentdetect/SentenceContentProvider.java?rev=1299705&r1=1299704&r2=1299705&view=diff
==============================================================================
--- opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/sentdetect/SentenceContentProvider.java (original)
+++ opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/sentdetect/SentenceContentProvider.java Mon Mar 12 15:12:09 2012
@@ -262,7 +262,7 @@ public class SentenceContentProvider imp
       exclusionSpanTypes = new Type[0];
     }
     
-    if (Arrays.binarySearch(exclusionSpanTypes, sentenceType) == -1) {
+    if (Arrays.binarySearch(exclusionSpanTypes, sentenceType) < 0) {
       exclusionSpanTypes = Arrays.copyOf(exclusionSpanTypes, exclusionSpanTypes.length + 1);
       exclusionSpanTypes[exclusionSpanTypes.length - 1] = sentenceType;
     }