From dd4b8dc52d6f8bef1a3aca2a2be0951a40711b0e Mon Sep 17 00:00:00 2001 From: Error Prone Team Date: Tue, 4 Oct 2022 10:23:38 -0700 Subject: [PATCH] Migrate ErrorProne docs to AndroidX Classes in the `android.support` package were moved to `androidx` in 2018. PiperOrigin-RevId: 478823427 --- docs/bugpattern/ArrayEquals.md | 13 +++++++------ docs/bugpattern/MissingSuperCall.md | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/bugpattern/ArrayEquals.md b/docs/bugpattern/ArrayEquals.md index 780ffe88138..09cfc76ea33 100644 --- a/docs/bugpattern/ArrayEquals.md +++ b/docs/bugpattern/ArrayEquals.md @@ -1,10 +1,11 @@ Generally when comparing arrays for equality, the programmer intends to check that the contents of the arrays are equal rather than that they are actually the same object. But many commonly used equals methods compare arrays for reference -equality rather than content equality. These include the instance .equals() -method, Guava's com.google.common.base.Objects#equal(), JDK's -java.util.Objects#equals(), and Android's -android.support.v4.util.ObjectsCompat#equals. +equality rather than content equality. These include the instance `.equals()` +method, Guava's `com.google.common.base.Objects#equal()`, JDK's +`java.util.Objects#equals()`, and Android's +`androidx.core.ObjectsCompat#equals()`. -If reference equality is needed, == should be used instead for clarity. -Otherwise, use java.util.Arrays#equals() to compare the contents of the arrays. +If reference equality is needed, `==` should be used instead for clarity. +Otherwise, use `java.util.Arrays#equals()` to compare the contents of the +arrays. diff --git a/docs/bugpattern/MissingSuperCall.md b/docs/bugpattern/MissingSuperCall.md index 9bf7e230ae1..c00577f664a 100644 --- a/docs/bugpattern/MissingSuperCall.md +++ b/docs/bugpattern/MissingSuperCall.md @@ -1,4 +1,4 @@ API providers may annotate a method with an annotation like -`android.support.annotation.CallSuper` or +`androidx.annotation.CallSuper` or `javax.annotation.OverridingMethodsMustInvokeSuper` to require that overriding methods invoke the super method. This check enforces those annotations.