Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49b8b918 authored by Julius D'souza's avatar Julius D'souza
Browse files

LockscreenCredential: clarify Effective Java rule



The "Always override hashCode when you override equals" rule in
Effective Java now has different item numbers across editions.
Update the comment to the actual rule used.

Test: new comment reads correctly

Change-Id: Ibdbce008f653f8800acc76176ad06ffe347dc106
Signed-off-by: default avatarJulius D'souza <jdsouza@google.com>
parent 7a5f5728
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -308,7 +308,7 @@ public class LockscreenCredential implements Parcelable, AutoCloseable {

    @Override
    public int hashCode() {
        // Effective Java — Item 9
        // Effective Java — Always override hashCode when you override equals
        return (17 + mType) * 31 + mCredential.hashCode();
    }