Files
openide/java/java-tests/testData/codeInsight/javadocIG/inferredAnnotationsOnArrayMethod.java
Tagir Valeev 1ff1f26e15 [java-doc] Fix rendering type-annotations on arrays (including non-source annotations)
Fixes IDEA-350503 Type annotations in JavaDoc are shown in wrong order for multi-dimensional array
Fixes IDEA-300381 Inferred @NotNull Annotation on Array / VarArg method parameter incorrectly annotates the array elements and not the argument.

GitOrigin-RevId: 4a5919df70c3bac9b19fb7019365636b9a56273a
2024-04-03 09:29:48 +00:00

5 lines
116 B
Java

class Test {
final String[] test() {
return Math.random() > 0.5 ? new String[] { "1", "2", "3" } : null;
}
}