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

Commit 1a6c53c1 authored by TYM Tsai's avatar TYM Tsai Committed by Automerger Merge Worker
Browse files

Merge "PM: Restrict subclass construction." into tm-dev am: 397c3769

parents c6a910de 397c3769
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -7753,6 +7753,10 @@ public class PackageParser {
            final ArrayList<T> intentsList;
            try {
                final Class<T> cls = (Class<T>) Class.forName(componentName);
                if (!IntentInfo.class.isAssignableFrom(cls)) {
                    throw new AssertionError("Intent list requires subclass of IntentInfo, not: "
                            + componentName);
                }
                final Constructor<T> cons = cls.getConstructor(Parcel.class);

                intentsList = new ArrayList<>(N);