-
Notifications
You must be signed in to change notification settings - Fork 749
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Classes in the `android.support` package were moved to `androidx` in 2018. PiperOrigin-RevId: 478823427
- Loading branch information
1 parent
0164cbc
commit dd4b8dc
Showing
2 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |