Integer i = ... switch (i){ case null: doSomething0(); break; }
In the code above I cant use null in switch case state
switch ((i != null) ? i : DEFAULT_VALUE) { //... }