Skip to content

Commit

Permalink
Migrate ErrorProne docs to AndroidX
Browse files Browse the repository at this point in the history
Classes in the `android.support` package were moved to `androidx` in 2018.

PiperOrigin-RevId: 478823427
  • Loading branch information
java-team-github-bot authored and Error Prone Team committed Oct 4, 2022
1 parent 0164cbc commit dd4b8dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions docs/bugpattern/ArrayEquals.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion docs/bugpattern/MissingSuperCall.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit dd4b8dc

Please sign in to comment.