mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 15:35:40 +07:00
16 lines
328 B
Java
16 lines
328 B
Java
import org.jetbrains.annotations.Nullable;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
class TestNPEafterNew {
|
|
@Nullable Object[] arr;
|
|
void test(@NotNull Object[] notnull) {
|
|
arr = notnull;
|
|
System.out.println(arr.length);
|
|
}
|
|
|
|
void test() {
|
|
arr = new Object[5];
|
|
System.out.println(arr.length);
|
|
}
|
|
}
|