mirror of https://github.com/apache/lucene.git
Trimming numbers to avoid NFE
This commit is contained in:
parent
408567935b
commit
e309031c7f
|
@ -390,7 +390,7 @@ public class DocIdEncodingBenchmark {
|
||||||
String sequence = fileReader.nextLine().trim();
|
String sequence = fileReader.nextLine().trim();
|
||||||
if (!sequence.startsWith("#") && !sequence.isEmpty()) {
|
if (!sequence.startsWith("#") && !sequence.isEmpty()) {
|
||||||
DOC_ID_SEQUENCES.add(
|
DOC_ID_SEQUENCES.add(
|
||||||
Arrays.stream(sequence.split(",")).mapToInt(Integer::parseInt).toArray());
|
Arrays.stream(sequence.split(",")).map(String::trim).mapToInt(Integer::parseInt).toArray());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|
Loading…
Reference in New Issue