From 11d491173206313a65801961e02425c0526e891e Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Fri, 26 Jun 2015 14:00:57 -0700 Subject: Removing junit.framework.Assert Bug: 22124692 Change-Id: Ie9c920ec6ef9631392a70b9ab2a5659ba23385b3 --- src/com/android/launcher3/Utilities.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java index 0d13c6990..19334ed31 100644 --- a/src/com/android/launcher3/Utilities.java +++ b/src/com/android/launcher3/Utilities.java @@ -56,8 +56,6 @@ import android.util.TypedValue; import android.view.View; import android.widget.Toast; -import junit.framework.Assert; - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.ArrayList; @@ -665,8 +663,9 @@ public final class Utilities { } public static void assertWorkerThread() { - if (LauncherAppState.isDogfoodBuild()) { - Assert.assertTrue(LauncherModel.sWorkerThread.getThreadId() == Process.myTid()); + if (LauncherAppState.isDogfoodBuild() && + (LauncherModel.sWorkerThread.getThreadId() != Process.myTid())) { + throw new IllegalStateException(); } } -- cgit v1.2.3