by jdmichal · 10y ago · 0 comments
enum Whatever { FOO, BAR }
if (whatever == FOO) {
} else if (whatever == BAR) {
} else {
// Should never happen!
}
[0] http://stackoverflow.com/questions/5013194/why-is-default-re... throw new AssertionError("Should never happen");