mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-27 13:14:18 +07:00
GitOrigin-RevId: 75783584e0d0d135123adefd86076d9fad4bdfd1
16 lines
432 B
Java
16 lines
432 B
Java
// "Extract variables from 'if'" "true"
|
|
|
|
|
|
public class Main {
|
|
// https://youtrack.jetbrains.com/issue/IDEA-229916
|
|
public void analysisBugWithMinAndMax(int width, int height, boolean someFlag) {
|
|
int a = Math.max(width, height);
|
|
int b = Math.min(width, height);
|
|
if (someFlag) {
|
|
System.out.println("a=" + a + ", b=" + b);
|
|
}
|
|
else {
|
|
System.out.println("a=" + b + ", b=" + a);
|
|
}
|
|
}
|
|
} |