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

Commit d27f1bd3 authored by Kurt Nelson's avatar Kurt Nelson Committed by Android (Google) Code Review
Browse files

Merge "Don't store class in InstanceCountViolation"

parents da781ccc 3de47967
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -2568,9 +2568,8 @@ public final class StrictMode {
    // now we suppress the stack trace because it's useless and/or
    // misleading.
    private static class InstanceCountViolation extends Throwable {
        final Class mClass;
        final long mInstances;
        final int mLimit;
        private final long mInstances;
        private final int mLimit;

        private static final StackTraceElement[] FAKE_STACK = {
            new StackTraceElement(
@@ -2580,7 +2579,6 @@ public final class StrictMode {
        public InstanceCountViolation(Class klass, long instances, int limit) {
            super(klass.toString() + "; instances=" + instances + "; limit=" + limit);
            setStackTrace(FAKE_STACK);
            mClass = klass;
            mInstances = instances;
            mLimit = limit;
        }