google / guice

Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 11 and above, brought to you by Google.
https://github.com/google/guice
Apache License 2.0
12.48k stars 1.67k forks source link

Replace Guava's Objects class with java.util.Objects #1786

Open HannesWell opened 9 months ago

HannesWell commented 9 months ago

Additionally use Objects.hashCode() instead of Objects.hash() for single arguments. This changes the resulting hashCode() value but saves the creation of a singleton array.

Part of https://github.com/google/guice/issues/1785