From 7cffae3a16f7d0c94a79a273a702c0013af7f5ac Mon Sep 17 00:00:00 2001 From: Mike McCandless Date: Fri, 9 Dec 2016 18:35:13 -0500 Subject: [PATCH] don't create unnecessary lambda --- .../src/java/org/apache/lucene/index/IndexWriterConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.java b/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.java index ce4f0a8e5c3..1e1e795d50b 100644 --- a/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.java +++ b/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.java @@ -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; }