Open ljacqu opened 1 year ago
Seems impossible to do currently:
@NotNull
and @Nullable
have SOURCE
retention, so need to use org.reflections or javassist to pick out the values@Foo String[]
means the array is annotated, while it's supposed to be String @Foo []
. This leads to a lot of false positives.
Write a unit test that scans the parameters of methods and constructors, and the return value of methods and that reports any that don't have
@NotNull
or@Nullable
.To do
T @NotNull []
is how the array itself is reported not null. Probably should also check the component if possible?List<String>
(vs.List<@NotNull String>
)...?