mirror of https://github.com/apache/lucene.git
don't create unnecessary lambda
This commit is contained in:
parent
4efbde4e76
commit
7cffae3a16
|
@ -476,7 +476,7 @@ public final class IndexWriterConfig extends LiveIndexWriterConfig {
|
|||
}
|
||||
}
|
||||
this.indexSort = sort;
|
||||
this.indexSortFields = Arrays.stream(sort.getSort()).map((s) -> s.getField()).collect(Collectors.toSet());
|
||||
this.indexSortFields = Arrays.stream(sort.getSort()).map(SortField::getField).collect(Collectors.toSet());
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue