don't create unnecessary lambda

This commit is contained in:
Mike McCandless 2016-12-09 18:35:13 -05:00
parent 4efbde4e76
commit 7cffae3a16
1 changed files with 1 additions and 1 deletions

View File

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