mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
Fixes IDEA-354502 Infer nullity / DFA: method return type nullability not inferred with returned new array without initializer GitOrigin-RevId: f53afe22ebae40cb8326e6f83e29ccc93d93cbea
13 lines
239 B
Java
13 lines
239 B
Java
import org.jetbrains.annotations.NotNull;
|
|
|
|
public class J {
|
|
@NotNull
|
|
public String[] createArrayFailure(int size) {
|
|
return new String[size];
|
|
}
|
|
|
|
@NotNull
|
|
public String[] createArraySuccess() {
|
|
return new String[] {};
|
|
}
|
|
} |