Skip to content

Commit

Permalink
Bug 1081276: Don't use Java assertions. r=rnewman
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisKitching committed Oct 10, 2014
1 parent ba33403 commit 1d64908
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mobile/android/base/webapp/InstallListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import org.json.JSONException;
import org.json.JSONObject;
import org.mozilla.gecko.Assert;
import org.mozilla.gecko.GeckoThread;

import android.content.BroadcastReceiver;
Expand All @@ -31,8 +32,8 @@ public InstallListener(String manifestUrl, JSONObject data, File apkFile) {
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() {
Expand Down

0 comments on commit 1d64908

Please sign in to comment.