On Tue, 19 Dec 2023 09:41:45 GMT, Sergey Tsypanov <[email protected]> wrote:
> Isn't `Arrays.equals()` used under the hood? The JLS and the API spec don't mention any special-casing of arrays, and the code seems to use `Objects.equals` for all non-primitive types: https://github.com/openjdk/jdk/blob/988601b324c971daf4e537074a007c25059af91b/src/java.base/share/classes/java/lang/runtime/ObjectMethods.java#L183-L187 (side note, it seems like `OBJECT_EQUALS` is unused?) ------------- PR Comment: https://git.openjdk.org/jdk/pull/17143#issuecomment-1862550269
