mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-30 01:20:53 +07:00
10 lines
242 B
Java
10 lines
242 B
Java
// "Replace with 'Objects.requireNonNull(arr)'" "true-preview"
|
|
|
|
import java.util.Objects;
|
|
|
|
class MyClass {
|
|
void test() {
|
|
int[] arr = Math.random() > 0.5 ? null : new int[10];
|
|
System.out.println(Objects.requireNonNull(arr)[1]);
|
|
}
|
|
} |