summaryrefslogtreecommitdiff
path: root/core/java/android/util/ArrayMap.java
diff options
context:
space:
mode:
authorEdward Savage-Jones <edward.savage-jones@sony.com>2020-10-13 19:38:50 +0200
committerSuprabh Shukla <suprabh@google.com>2021-09-29 06:53:42 +0000
commit46b4ba42018655910dbb23441998d226f996dc13 (patch)
tree99cad0552e918c1c9159d073f62cdfd707518b7c /core/java/android/util/ArrayMap.java
parent773a3783902e531c6826ac8f9ac53506c07a9be2 (diff)
Redact key value from log when DEBUG is false
See bug for details Bug: 170653379 Test: see bug Change-Id: I713fd8c03444167faf35a170b885c38af5482e31
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;
}