blob: f3d27d3a6b79f12ce06f907b967547f0920bc2c4 [file]
// "Replace with 'switch' expression" "true"
import java.util.*;
class SwitchExpressionMigration {
private static void m() {
int result;
System.out.println("adasd");
/*before label*/
foo:/*after label*/
switch<caret>(s) {/*in switch*/
case "a": result = 1; break foo;
case "b":
throw new NullPointerException();
default: result = 0;
}
}
}