mirror of https://github.com/apache/lucene.git
fixed array length bug
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@450725 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5c89547898
commit
af08199090
|
@ -297,7 +297,7 @@ public class PatternAnalyzer extends Analyzer {
|
||||||
len += n;
|
len += n;
|
||||||
}
|
}
|
||||||
|
|
||||||
return new String(output, 0, output.length);
|
return new String(output, 0, len);
|
||||||
} finally {
|
} finally {
|
||||||
if (input != null) input.close();
|
if (input != null) input.close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue