mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
15 lines
330 B
Java
15 lines
330 B
Java
// "Move condition to loop" "true-preview"
|
|
class Main {
|
|
private int variableWithSameName = 1;
|
|
public static void main(String[] args) {
|
|
int i = 1;
|
|
while<caret>(true) {
|
|
if (i >= 100) {
|
|
break;
|
|
} else {
|
|
int variableWithAnotherName = -100;
|
|
}
|
|
i = i + variableWithSameName;
|
|
}
|
|
}
|
|
} |