mercredi 25 mars 2015

True IF statement goes on else branch

Can someone please tell me why this statement goes on the else branch ?



public boolean isAutoCheckForNewTickets(String accountID) {
settingsTableAdapter = new SettingsTableAdapter(this);
int checkSelected= settingsTableAdapter
.getCheckSelected(accountGUID);
if (checkSelected == 1)
return true;
else
return false;
}


I mention that the checkSelected value is 1 after the database interrogation. It doesn't make any sense for me.


Aucun commentaire:

Enregistrer un commentaire