[grid] Replace Guava list,set,map and sorted set with Java equivalent#16206
[grid] Replace Guava list,set,map and sorted set with Java equivalent#16206pujagani wants to merge 8 commits intoSeleniumHQ:trunkfrom
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
java/src/org/openqa/selenium/grid/commands/EventBusCommand.java
Outdated
Show resolved
Hide resolved
|
Found an issue in a related PR. Trying to sort it out first, then accordingly update here if required. |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
|
@pujagani What is the status of this PR? Can we merge it? |
|
superseded by #16776 |
User description
🔗 Related Issues
Starting PR for replacing Guava's Immutable Set, List, Map, SortSet and Primitives usage with Java 11 or other equivalent in the Grid.
💥 What does this PR do?
PR replaces Guava's Immutable Set, List, Map, SortSet and Primitives usage with Java 11 or other equivalent in the Grid's packages, commands and config. The rest of the change will be done as follow up PRs.
🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Replace Guava collections with Java 11 equivalents
Remove dependencies on ImmutableList, ImmutableSet, ImmutableMap
Update sorted collections to use TreeSet
Modernize collection creation patterns
Diagram Walkthrough
File Walkthrough
14 files
Replace ImmutableMap with Map.ofReplace ImmutableMap with Map.ofReplace ImmutableSet and ImmutableMap with Java equivalentsReplace ImmutableSet with Set.ofReplace ImmutableSet with Set.ofReplace Guava collections with TreeSet and List.copyOfReplace Guava collectors with Java stream collectorsReplace ImmutableMap and ImmutableSortedSet with Java equivalentsReplace ImmutableList with List.copyOfReplace ImmutableSet and ImmutableSortedSet with Java equivalentsReplace Guava Primitives and collections with Java equivalentsReplace ImmutableList and ImmutableSortedSet with Java equivalentsReplace Guava collections with Java unmodifiable collectionsReplace ImmutableList and ImmutableSortedSet with Java equivalents