Closed reitzig closed 5 years ago
This repository is for annotations themselves, not for IDE or annotation processors which use them. I copied your report to appropriate issue tracker: https://youtrack.jetbrains.com/issue/IDEA-211172 You may watch there for progress.
Mixed-use annotations are confusing and always were discouraged by JSR-308 authors. A proper fix would be restricting @NotNull
and @Nullable
annotations to type-use-only.
@amaembo Thanks!
@trespasserw On arrays, I agree. It's much clearer (not to mention very helpful) on generics, and IIRC you can't enable only one but not the other.
I'm not sure whether this here is the correct repo to report this.
The nullability checks generated on arrays seem to be wrong. Consider this code:
Expected:
This is consistent with IDEA inspections:
Actual:
Observed with annotations 17.0.0, Java 8.0.181-oracle run from IDEA 2019.1 (directly and via Gradle 5.3.1).