mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 09:47:51 +07:00
Fixes IDEA-246054 Incorrect condition is always true due to ignored ArrayIndexOutOfBounds catch GitOrigin-RevId: 4d783f58e587e9cede2e63813583baaec5ece3bd
12 lines
208 B
Java
12 lines
208 B
Java
class X {
|
|
// IDEA-246054
|
|
void test(int[] data) {
|
|
for (int i = -1; i < data.length; i++) {
|
|
try {
|
|
data[i] = 0;
|
|
} catch (ArrayIndexOutOfBoundsException ignored) {
|
|
|
|
}
|
|
}
|
|
}
|
|
} |