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

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

Fix divergent equals and hashCode behavior

am: 27b25092

* commit '27b25092':
  Fix divergent equals and hashCode behavior

Change-Id: I5a31d6166a0e1ed2d4f4c6cedb0afb5c831836f7
parents 1bf9957d 27b25092
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