Bug 1081598: Eliminate silly ternary expressions. r=rnewman

* * *
Bug 1081598: Eliminate silly ternary expressions. r=rnewman
This commit is contained in:
Chris Kitching 2014-10-12 02:11:40 +01:00
parent 1ca995c95f
commit f92a0f779a
2 changed files with 2 additions and 2 deletions

View File

@ -665,7 +665,7 @@ public class ContactService implements GeckoEventListener {
}
private boolean bool(int integer) {
return integer != 0 ? true : false;
return integer != 0;
}
private void getGenericDataAsJSONObject(Cursor cursor, JSONArray array, final String dataColumn,

View File

@ -194,7 +194,7 @@ public class RepoUtils {
final String collection = "history";
final long lastModified = getLongFromCursor(cur, BrowserContract.SyncColumns.DATE_MODIFIED);
final boolean deleted = getLongFromCursor(cur, BrowserContract.SyncColumns.IS_DELETED) == 1 ? true : false;
final boolean deleted = getLongFromCursor(cur, BrowserContract.SyncColumns.IS_DELETED) == 1;
final HistoryRecord rec = new HistoryRecord(guid, collection, lastModified, deleted);