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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user