summaryrefslogtreecommitdiff
path: root/core/java/android/util/ArrayMap.java
diff options
context:
space:
mode:
authorSuprabh Shukla <suprabh@google.com>2021-09-29 23:25:21 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-09-29 23:25:21 +0000
commit17a7d79ff4d42b527dfd97eaa52b25f69e64f904 (patch)
tree7c3b05646ce75fb11217090827bad57e6709b4dd /core/java/android/util/ArrayMap.java
parent6a5e5945153000ddb64af909f44e1bfbe22dd854 (diff)
parent46b4ba42018655910dbb23441998d226f996dc13 (diff)
Merge "Redact key value from log when DEBUG is false"
Diffstat (limited to 'core/java/android/util/ArrayMap.java')
-rw-r--r--core/java/android/util/ArrayMap.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/util/ArrayMap.java b/core/java/android/util/ArrayMap.java
index 4cf0a36d24bb..418d92c44290 100644
--- a/core/java/android/util/ArrayMap.java
+++ b/core/java/android/util/ArrayMap.java
@@ -645,7 +645,7 @@ public final class ArrayMap<K, V> implements Map<K, V> {
e.fillInStackTrace();
Log.w(TAG, "New hash " + hash
+ " is before end of array hash " + mHashes[index-1]
- + " at index " + index + " key " + key, e);
+ + " at index " + index + (DEBUG ? " key " + key : ""), e);
put(key, value);
return;
}