[ 
https://issues.apache.org/jira/browse/SOLR-16713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17707659#comment-17707659
 ] 

ASF subversion and git services commented on SOLR-16713:
--------------------------------------------------------

Commit 375ac647ad507638686848c549c30e6c077dca1b in solr's branch 
refs/heads/main from Kevin Risden
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=375ac647ad5 ]

SOLR-16713: Replace Guava usages with pure Java (part 2) (#1501)

Cleans up the following by adding forbiddenapis rules:
* com.google.common.base.Throwables
* com.google.common.collect.ImmutableMap
* com.google.common.collect.**
* com.google.common.io.** (and consequently 
org.apache.commons.io.IOUtils#toString(java.io.Reader) since its the same usage)

> Replace Guava usages with pure Java 
> ------------------------------------
>
>                 Key: SOLR-16713
>                 URL: https://issues.apache.org/jira/browse/SOLR-16713
>             Project: Solr
>          Issue Type: Task
>            Reporter: Kevin Risden
>            Assignee: Kevin Risden
>            Priority: Minor
>             Fix For: main (10.0), 9.3
>
>          Time Spent: 5h 10m
>  Remaining Estimate: 0h
>
> Guava is used in a variety of places that can be simplified especially with 
> Java streams.
> * Preconditions -> Objects
> * Strings.isNullOrEmpty -> Simple helper method on StrUtils
> * Maps/ImmutableMap -> Java Map
> * Lists/ImmutableList -> Java List
> * Sets/ImmutableSet/ImmutableSortedSet -> Java Set
> * Collections2/Iterables/Iterators/ObjectArrays -> Java Stream
> * Guava cache -> Caffeine cache
> This ends up removing the Guava dependency from 4 build.gradle files:
> * modules/analytics
> * modules/sql
> * modules/gcs-repository - test
> * solrj - test
> ----
> Second pass cleans up
> * com.google.common.base.Throwables
> * com.google.common.collect.ImmutableMap
> * com.google.common.collect.**
> * com.google.common.io.** (and consequently 
> org.apache.commons.io.IOUtils#toString(java.io.Reader) since its the same 
> usage)
> This ends up removing Guava dependency from 
> * test-framework
> * solrj-zookeeper - test



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to