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: Ie823320896f6add8c9ef56c4d42215e3be12e18b
diff --git a/tests/hostside/helper/java/com/android/microdroid/test/MicrodroidHostTestCaseBase.java b/tests/hostside/helper/java/com/android/microdroid/test/MicrodroidHostTestCaseBase.java
index 2992a43..c84513a 100644
--- a/tests/hostside/helper/java/com/android/microdroid/test/MicrodroidHostTestCaseBase.java
+++ b/tests/hostside/helper/java/com/android/microdroid/test/MicrodroidHostTestCaseBase.java
@@ -144,7 +144,7 @@
CommandResult result = RunUtil.getDefault()
.runTimedCmdRetry(timeoutMs,
MICRODROID_COMMAND_RETRY_INTERVAL_MILLIS, attempts, cmd);
- assertWithMessage("Command `" + cmd + "` has failed")
+ assertWithMessage("Command `" + Arrays.toString(cmd) + "` has failed")
.about(command_results())
.that(result)
.isSuccess();
@@ -158,7 +158,7 @@
CommandResult result = RunUtil.getDefault()
.runTimedCmdRetry(timeoutMs, MICRODROID_COMMAND_RETRY_INTERVAL_MILLIS, attempts,
"adb", "-s", MICRODROID_SERIAL, "shell", join(cmd));
- assertWithMessage("Command `" + cmd + "` has failed")
+ assertWithMessage("Command `" + Arrays.toString(cmd) + "` has failed")
.about(command_results())
.that(result)
.isSuccess();