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

Commit 34573d56 authored by Roman Kalukiewicz's avatar Roman Kalukiewicz Committed by Android (Google) Code Review
Browse files

Merge "Add @Nullable annotation to the parameter of Object.equals() methods."

parents 5f3aa022 24403f7e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4901,7 +4901,7 @@ package android.app {
  @Deprecated public class Fragment implements android.content.ComponentCallbacks2 android.view.View.OnCreateContextMenuListener {
    ctor @Deprecated public Fragment();
    method @Deprecated public void dump(String, java.io.FileDescriptor, java.io.PrintWriter, String[]);
    method @Deprecated public final boolean equals(Object);
    method @Deprecated public final boolean equals(@Nullable Object);
    method @Deprecated public final android.app.Activity getActivity();
    method @Deprecated public boolean getAllowEnterTransitionOverlap();
    method @Deprecated public boolean getAllowReturnTransitionOverlap();
+1 −1
Original line number Diff line number Diff line
@@ -1077,7 +1077,7 @@ public class AccessibilityServiceInfo implements Parcelable {
    }

    @Override
    public boolean equals(Object obj) {
    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
+1 −1
Original line number Diff line number Diff line
@@ -287,7 +287,7 @@ public final class AccessibilityShortcutInfo {
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object obj) {
    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ public class Account implements Parcelable {
    @UnsupportedAppUsage
    private final @Nullable String accessId;

    public boolean equals(Object o) {
    public boolean equals(@Nullable Object o) {
        if (o == this) return true;
        if (!(o instanceof Account)) return false;
        final Account other = (Account)o;
+2 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package android.accounts;

import android.annotation.Nullable;
import android.compat.annotation.UnsupportedAppUsage;

/**
@@ -35,7 +36,7 @@ public class AccountAndUser {
        this.userId = userId;
    }

    public boolean equals(Object o) {
    public boolean equals(@Nullable Object o) {
        if (this == o) return true;
        if (!(o instanceof AccountAndUser)) return false;
        final AccountAndUser other = (AccountAndUser) o;
Loading