Skip to content

Instantly share code, notes, and snippets.

@dsosby dsosby/gist:3123580
Created Jul 16, 2012

Embed
What would you like to do?
boolean isFoo() {
int status = this.getStatus();
return (status != STATUS_BAR &&
status != STATUS_BAZ);
}
vs.
boolean isFoo() {
int status = this.getStatus();
return (status == STATUS_BLAH ||
status == STATUS_BLEE ||
...continues for several more);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.