mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
17 lines
386 B
Java
17 lines
386 B
Java
// "Unwrap 'if' statement" "true-preview"
|
|
class X {
|
|
public String testUnwrap(String f) {
|
|
switch (f) {
|
|
case "A":
|
|
return "A";
|
|
case "B":
|
|
if (t<caret>rue) {
|
|
return "b";
|
|
}
|
|
case "D":
|
|
return "D";
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
} |