mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-04 12:03:57 +07:00
GitOrigin-RevId: 7f72c5f68ab821e728eb0d5152f0910f48035046
11 lines
269 B
Java
11 lines
269 B
Java
// "Bring 'String msg' into scope" "true-preview"
|
|
public class BringVarIntoScope {
|
|
public void moveVariableDeclarationOutOfBlock(boolean b) {
|
|
String msg;
|
|
if (b) {
|
|
msg = "Leap year";
|
|
} else {
|
|
msg = "Not a leap year";
|
|
}
|
|
}
|
|
} |