Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9caafcc authored by Steven Moreland's avatar Steven Moreland Committed by Android (Google) Code Review
Browse files

Merge "Revert "Parcel: readValue harder error"" into main

parents f4740b36 22dac994
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -4702,11 +4702,9 @@ public final class Parcel {
            object = readValue(type, loader, clazz, itemTypes);
            int actual = dataPosition() - start;
            if (actual != length) {
                String error = "Unparcelling of " + object + " of type "
                                + Parcel.valueTypeToString(type) + "  consumed " + actual
                                + " bytes, but " + length + " expected.";
                Slog.wtfStack(TAG, error);
                throw new BadParcelableException(error);
                Slog.wtfStack(TAG,
                        "Unparcelling of " + object + " of type " + Parcel.valueTypeToString(type)
                                + "  consumed " + actual + " bytes, but " + length + " expected.");
            }
        } else {
            object = readValue(type, loader, clazz, itemTypes);