lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hoss...@apache.org
Subject [15/32] lucene-solr:jira/solr-5944: don't create unnecessary lambda
Date Wed, 14 Dec 2016 22:15:08 GMT
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/7cffae3a
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/7cffae3a
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/7cffae3a

Branch: refs/heads/jira/solr-5944
Commit: 7cffae3a16f7d0c94a79a273a702c0013af7f5ac
Parents: 4efbde4
Author: Mike McCandless <mikemccand@apache.org>
Authored: Fri Dec 9 18:35:13 2016 -0500
Committer: Mike McCandless <mikemccand@apache.org>
Committed: Fri Dec 9 18:35:13 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/7cffae3a/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;
   }
 


Mime
View raw message