aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCole Faust <colefaust@google.com>2022-08-15 15:03:08 -0700
committerCole Faust <colefaust@google.com>2022-08-15 18:54:02 -0700
commit7ad99e3431071648455961b3dac85e65b7ca3b5e (patch)
tree122c6352c5a49f417dd0b975def632d3d14106b2
parenta9786e84d99f2a56b6810483009766fb7a6ee034 (diff)
downloadlatinime-7ad99e3431071648455961b3dac85e65b7ca3b5e.tar.gz
latinime-7ad99e3431071648455961b3dac85e65b7ca3b5e.tar.xz
latinime-7ad99e3431071648455961b3dac85e65b7ca3b5e.zip
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: I689397a7196277de3fd301836e72f7555e2036cb
Diffstat (limited to '')
-rw-r--r--java/src/com/android/inputmethod/dictionarypack/DownloadManagerWrapper.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/dictionarypack/DownloadManagerWrapper.java b/java/src/com/android/inputmethod/dictionarypack/DownloadManagerWrapper.java
index 6f6b02637..e2e9a7e44 100644
--- a/java/src/com/android/inputmethod/dictionarypack/DownloadManagerWrapper.java
+++ b/java/src/com/android/inputmethod/dictionarypack/DownloadManagerWrapper.java
@@ -26,6 +26,7 @@ import android.os.ParcelFileDescriptor;
import android.util.Log;
import java.io.FileNotFoundException;
+import java.util.Arrays;
import javax.annotation.Nullable;
@@ -62,7 +63,8 @@ public class DownloadManagerWrapper {
// We couldn't remove the file from DownloadManager. Apparently, the database can't
// be opened. It may be a problem with file system corruption. In any case, there is
// not much we can do apart from avoiding crashing.
- Log.e(TAG, "Can't remove files with ID " + ids + " from download manager", e);
+ Log.e(TAG, "Can't remove files with ID " + Arrays.toString(ids) +
+ " from download manager", e);
}
}