Bug 1081276: Don't use Java assertions. r=rnewman

This commit is contained in:
Chris Kitching 2014-10-10 20:40:20 +01:00
parent 1a28cd5cbc
commit a57d3f5ce6

View File

@ -10,6 +10,7 @@ import java.io.IOException;
import org.json.JSONException;
import org.json.JSONObject;
import org.mozilla.gecko.Assert;
import org.mozilla.gecko.GeckoThread;
import android.content.BroadcastReceiver;
@ -31,8 +32,8 @@ public class InstallListener extends BroadcastReceiver {
mData = data;
mApkFile = apkFile;
mManifestUrl = manifestUrl;
assert mManifestUrl != null;
assert mApkFile != null && mApkFile.exists();
Assert.isNotNull(mManifestUrl);
Assert.isTrue(mApkFile != null && mApkFile.exists());
}
public boolean isReceived() {