Redact key value from log when DEBUG is false

See bug for details

Bug: 170653379
Test: see bug
Change-Id: I713fd8c03444167faf35a170b885c38af5482e31
This commit is contained in:
Edward Savage-Jones
2020-10-13 19:38:50 +02:00
committed by Suprabh Shukla
parent 773a378390
commit 46b4ba4201

View File

@@ -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;
}