class Main { final int i = 2; void f(Object obj) { switch (obj) { case Integer i: break; case i: System.out.println(i); } } } }