You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2016/12/09 23:36:22 UTC
lucene-solr:branch_6x: don't create unnecessary lambda
Repository: lucene-solr
Updated Branches:
refs/heads/branch_6x 928fa91c8 -> 72537fd2c
don't create unnecessary lambda
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/72537fd2
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/72537fd2
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/72537fd2
Branch: refs/heads/branch_6x
Commit: 72537fd2cd8caf1d85c0ec0ffac52b167f6982b2
Parents: 928fa91
Author: Mike McCandless <mi...@apache.org>
Authored: Fri Dec 9 18:35:13 2016 -0500
Committer: Mike McCandless <mi...@apache.org>
Committed: Fri Dec 9 18:35:53 2016 -0500
----------------------------------------------------------------------
.../core/src/java/org/apache/lucene/index/IndexWriterConfig.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/72537fd2/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.java
----------------------------------------------------------------------
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 ce4f0a8..1e1e795 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;
}