Fix array-related errorprone warnings

The ArrayEquals, ArrayHashCode, ArrayToString, and
ArraysAsListPrimitiveArray errorprone findings were
demoted from errors to warnings. Fix existing
occurrences of them so they can be made errors again.

Bug: 242630963
Test: RUN_ERROR_PRONE=true m javac-check
Change-Id: I95b4d0f8d3dfa957285ca94e0846fd3da4734e57
This commit is contained in:
Cole Faust
2022-08-15 15:03:08 -07:00
committed by Lorenzo Colitti
parent 6956ac5eb5
commit fe60c0fe31
3 changed files with 9 additions and 6 deletions

View File

@@ -1273,8 +1273,10 @@ public class TetheringManager {
@Override
public int hashCode() {
return Objects.hash(mTetherableBluetoothRegexs, mTetherableUsbRegexs,
mTetherableWifiRegexs);
return Objects.hash(
Arrays.hashCode(mTetherableBluetoothRegexs),
Arrays.hashCode(mTetherableUsbRegexs),
Arrays.hashCode(mTetherableWifiRegexs));
}
@Override