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

Commit 4dace5f6 authored by Anton Hansson's avatar Anton Hansson Committed by Gerrit Code Review
Browse files

Merge "Fix nullability annotations on equals methods" into main

parents 07ff45a3 fa927a51
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package android.bluetooth;

import android.annotation.IntDef;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.os.Parcel;
import android.os.Parcelable;

@@ -378,7 +379,7 @@ public final class BluetoothLeAudioCodecConfig implements Parcelable {
    }

    @Override
    public boolean equals(@NonNull Object o) {
    public boolean equals(@Nullable Object o) {
        if (o instanceof BluetoothLeAudioCodecConfig) {
            BluetoothLeAudioCodecConfig other = (BluetoothLeAudioCodecConfig) o;
            return (other.getCodecType() == mCodecType