[
https://issues.apache.org/jira/browse/SOLR-9621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15616644#comment-15616644
]
ASF subversion and git services commented on SOLR-9621:
-------------------------------------------------------
Commit a3c701e2f6f0949f5ee2f08eb1d03f962bff6eca in lucene-solr's branch
refs/heads/branch_6x from [~dsmiley]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=a3c701e ]
SOLR-9621: Remove several Guava & Apache Commons calls in favor of java 8
alternatives.
(cherry picked from commit 2e21511)
> Remove several guava, apache commons calls in favor of java 8 alternatives
> --------------------------------------------------------------------------
>
> Key: SOLR-9621
> URL: https://issues.apache.org/jira/browse/SOLR-9621
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Michael Braun
> Assignee: David Smiley
> Priority: Trivial
> Fix For: 6.4
>
> Attachments: SOLR-9621.patch, SOLR-9621.patch
>
>
> Now that Solr is against Java 8, we can take advantage of replacing some
> guava and apache commons calls with JDK standards. I'd like to start by
> replacing the following:
> com.google.common.base.Supplier -> java.util.function.Supplier
> com.google.common.base.Predicate -> java.util.function.Predicate
> com.google.common.base.Charsets -> java.nio.charset.StandardCharsets
> org.apache.commons.codec.Charsets -> java.nio.charset.StandardCharsets
> com.google.common.collect.Ordering -> java.util.Comparator
> com.google.common.base.Joiner -> java.util.stream.Collectors::joining
> com.google.common.base.Function -> java.util.function.Function
> com.google.common.base.Preconditions::checkNotNull ->
> java.util.Objects::requireNonNull
> com.google.common.base.Objects::equals -> java.util.Objects::equals
> com.google.common.base.Objects::hashCode -> java.util.Objects::hashCode
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]