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:
Wolfgang Hoschek 2006-09-28 07:11:39 +00:00
parent 5c89547898
commit af08199090
1 changed files with 1 additions and 1 deletions

View File

@ -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();
} }