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

Rishabh Daim commented on OAK-11363:
------------------------------------

>From Javadocs of `Maps.uniqueIndex` :
{code:java}
Note: on Java 8+, it is usually better to use streams. For example:



Color red = new Color("red", 255, 0, 0);
Set<Color> allColors = Set.of(red, green, blue);
Map<String, Color> colorForName = allColors.stream().collect(toMap(c -> 
c.toString(), c -> c));}
{code}

> Remove usage of Guava Maps.uniqueIndex
> --------------------------------------
>
>                 Key: OAK-11363
>                 URL: https://issues.apache.org/jira/browse/OAK-11363
>             Project: Jackrabbit Oak
>          Issue Type: Technical task
>            Reporter: Rishabh Daim
>            Assignee: Rishabh Daim
>            Priority: Major
>




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

Reply via email to