package edu.stanford.nlp.util;
public class ArrayStringFilter implements Filter<String> {
private final String[] words;
<BUG>private final int length;
public ArrayStringFilter(String ... words) {

this.words = new String[words.length];</BUG>
for (int i = 0; i < words.length; ++i) {

package edu.stanford.nlp.util;
public class ArrayStringFilter implements Filter<String> {
private final String[] words;
private final int length;
private final Mode mode;
public enum Mode {
EXACT, PREFIX
}
public ArrayStringFilter(Mode mode, String ... words) {
this.mode = mode;
this.words = new String[words.length];
for (int i = 0; i < words.length; ++i) {
