Merge "Log.wtf in mismatch + tests" am: 1cdbc7cbd1 am: d60218eb45 am: 5d32036b41

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1837194

Change-Id: If1fa51158bfa1dd5fa901d907aea72a6c8379ddc
This commit is contained in:
Bernardo Rufino
2021-09-30 11:04:34 +00:00
committed by Automerger Merge Worker
3 changed files with 207 additions and 2 deletions

View File

@@ -431,7 +431,7 @@ public class BaseBundle {
*
* @hide
*/
public static boolean kindofEquals(BaseBundle a, BaseBundle b) {
public static boolean kindofEquals(@Nullable BaseBundle a, @Nullable BaseBundle b) {
return (a == b) || (a != null && a.kindofEquals(b));
}

View File

@@ -3404,7 +3404,7 @@ public final class Parcel {
object = readValue(type, loader);
int actual = dataPosition() - start;
if (actual != length) {
Log.w(TAG,
Slog.wtfStack(TAG,
"Unparcelling of " + object + " of type " + Parcel.valueTypeToString(type)
+ " consumed " + actual + " bytes, but " + length + " expected.");
}