void (Object o) { TASK: while (o.hashCode() == 1) { switch (o) { case String s when s.isEmpty() && s.getBytes().length == 2: System.out.println("empty s"); break TASK; case String s: System.out.println("s"); continue TASK; case Integer i: System.out.println("i"); break; case Object ob: System.out.println(o); break; } break; } System.out.println("1"); }