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