I got curious, so after some bytecode digging: Kot...
# announcements
m
I got curious, so after some bytecode digging: Kotlin's
==
is syntactic sugar for a fancy
equals
with nullity checks. Under the covers, it uses
kotlin.jvm.internal.Intrinsics::areEqual
, which is defined as:
Copy code
public static boolean areEqual(Object first, Object second) {
        return first == null ? second == null : first.equals(second);
    }