Merge "Fix errorprone warnings that should be errors" am: 5744d7c560 am: 7094507528 am: 778ef161bb
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2255054 Change-Id: I1f3cbce7d5de6e63477bc2da2ad115ec53b06472 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -31,7 +31,7 @@ import java.util.stream.Collectors;
|
||||
* A buffer of the supported link data. This {@link SupportedLinkWrapper} wraps the host, enabled
|
||||
* and a list of {@link DomainOwner}.
|
||||
*/
|
||||
public class SupportedLinkWrapper implements Comparable {
|
||||
public class SupportedLinkWrapper implements Comparable<SupportedLinkWrapper> {
|
||||
private static final String TAG = "SupportedLinkWrapper";
|
||||
|
||||
private String mHost;
|
||||
@@ -112,8 +112,7 @@ public class SupportedLinkWrapper implements Comparable {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(Object o) {
|
||||
final SupportedLinkWrapper that = (SupportedLinkWrapper) o;
|
||||
public int compareTo(SupportedLinkWrapper that) {
|
||||
if (this.mIsEnabled != that.mIsEnabled) {
|
||||
return this.mIsEnabled ? -1 : 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user