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

Commit 7e3ae4c2 authored by Ian Rogers's avatar Ian Rogers Committed by android-build-merger
Browse files

Fix divergent equals and hashCode behavior

am: f915433a

* commit 'f915433a':
  Fix divergent equals and hashCode behavior

Change-Id: I5a31d6166a0e1ed2d4f4c6cedb0afb5c831836f7
parents a5eb2f38 f915433a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -61,8 +61,10 @@ import java.util.UUID;

        @Override
        public int hashCode() {
            return Objects.hash(address, addr_type, type, uuid, uuid_mask, name, company,
                    company_mask, data, data_mask);
            return Objects.hash(address, addr_type, type, uuid, uuid_mask,
                                name, company, company_mask,
                                Arrays.hashCode(data),
                                Arrays.hashCode(data_mask));
        }

        @Override