Loading core/java/android/app/ActivityThread.java +0 −2 Original line number Diff line number Diff line Loading @@ -7658,8 +7658,6 @@ public final class ActivityThread extends ClientTransactionHandler UtilConfig.setThrowExceptionForUpperArrayOutOfBounds( data.appInfo.targetSdkVersion >= Build.VERSION_CODES.Q); Message.updateCheckRecycle(data.appInfo.targetSdkVersion); // Supply the targetSdkVersion to the UI rendering module, which may // need it in cases where it does not have access to the appInfo. android.graphics.Compatibility.setTargetSdkVersion(data.appInfo.targetSdkVersion); Loading core/java/android/os/Message.java +2 −14 Original line number Diff line number Diff line Loading @@ -167,8 +167,6 @@ public final class Message implements Parcelable { private static final int MAX_POOL_SIZE = 50; private static boolean gCheckRecycle = true; /** * Return a new Message instance from the global pool. Allows us to * avoid allocating new objects in many cases. Loading Loading @@ -315,13 +313,6 @@ public final class Message implements Parcelable { return m; } /** @hide */ public static void updateCheckRecycle(int targetSdkVersion) { if (targetSdkVersion < Build.VERSION_CODES.LOLLIPOP) { gCheckRecycle = false; } } /** * Return a Message instance to the global pool. * <p> Loading @@ -332,12 +323,9 @@ public final class Message implements Parcelable { */ public void recycle() { if (isInUse()) { if (gCheckRecycle) { throw new IllegalStateException("This message cannot be recycled because it " + "is still in use."); } return; } recycleUnchecked(); } Loading Loading
core/java/android/app/ActivityThread.java +0 −2 Original line number Diff line number Diff line Loading @@ -7658,8 +7658,6 @@ public final class ActivityThread extends ClientTransactionHandler UtilConfig.setThrowExceptionForUpperArrayOutOfBounds( data.appInfo.targetSdkVersion >= Build.VERSION_CODES.Q); Message.updateCheckRecycle(data.appInfo.targetSdkVersion); // Supply the targetSdkVersion to the UI rendering module, which may // need it in cases where it does not have access to the appInfo. android.graphics.Compatibility.setTargetSdkVersion(data.appInfo.targetSdkVersion); Loading
core/java/android/os/Message.java +2 −14 Original line number Diff line number Diff line Loading @@ -167,8 +167,6 @@ public final class Message implements Parcelable { private static final int MAX_POOL_SIZE = 50; private static boolean gCheckRecycle = true; /** * Return a new Message instance from the global pool. Allows us to * avoid allocating new objects in many cases. Loading Loading @@ -315,13 +313,6 @@ public final class Message implements Parcelable { return m; } /** @hide */ public static void updateCheckRecycle(int targetSdkVersion) { if (targetSdkVersion < Build.VERSION_CODES.LOLLIPOP) { gCheckRecycle = false; } } /** * Return a Message instance to the global pool. * <p> Loading @@ -332,12 +323,9 @@ public final class Message implements Parcelable { */ public void recycle() { if (isInUse()) { if (gCheckRecycle) { throw new IllegalStateException("This message cannot be recycled because it " + "is still in use."); } return; } recycleUnchecked(); } Loading