[
https://issues.apache.org/jira/browse/SOLR-15485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17369592#comment-17369592
]
ASF subversion and git services commented on SOLR-15485:
--------------------------------------------------------
Commit 3822541d8952da50ca71c37eb0e64383aa259f97 in lucene-solr's branch
refs/heads/branch_8x from Christine Poerschke
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=3822541 ]
SOLR-15485: discourage Collections.singleton.forEach use (#179)
Resolved Conflicts:
gradle/validation/validate-source-patterns.gradle
solr/core/src/java/org/apache/solr/core/CoreContainer.java
> discourage Collections.singleton.forEach use
> --------------------------------------------
>
> Key: SOLR-15485
> URL: https://issues.apache.org/jira/browse/SOLR-15485
> Project: Solr
> Issue Type: Task
> Reporter: Christine Poerschke
> Assignee: Christine Poerschke
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> For example
> {code}
> Collections.singleton(foo).parallelStream().forEach(c -> { c.bar(); });
> {code}
> or
> {code}
> Collections.singleton(foo).stream().forEach(c -> { c.bar(); });
> {code}
> should typically be equivalent to
> {code}
> foo.bar();
> {code}
> which is more concise.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]