Files

11 lines
250 B
Java

// "Replace with old style 'switch' statement" "true"
import java.util.*;
class SwitchExpressionMigration {
private void matchingSwitchError(Object obj) {
int i = switch<caret> (obj) {
case String s -> 0;
default -> 1;
};
}
}