Skip to content

Instantly share code, notes, and snippets.

@slezica
Created July 21, 2012 17:46
Show Gist options
  • Save slezica/3156536 to your computer and use it in GitHub Desktop.
Save slezica/3156536 to your computer and use it in GitHub Desktop.
Java inconsistencies
// Asssignment:
a = b = c;
if (status = result());
// Standard setters:
setA(setB(c)); // No. Setters return void.
if (setStatus(result()); // And again. Impossible.
// Integer is abbreviated "int"
Integer.class boxes int.class
// Boolean is *not* abbreviated "bool"
Boolean.class boxes boolean.class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment