@NullMarked has @Target({MODULE, PACKAGE, TYPE, METHOD, CONSTRUCTOR})
@NullUnmarked has @Target({PACKAGE, TYPE, METHOD, CONSTRUCTOR})
When these annotations are on methods (or constructors), they are inlined, so this:
@NullMarkedvoidtestNullMarked(Stringstr) {
}
@NullUnmarkedvoidtestNullUnmarked(Stringstr) {
}will be transformed into this:
@NullMarkedvoidtestNullMarked(Stringstr) {
}
@NullUnmarkedvoidtestNullUnmarked(Stringstr) {
}Other targets like PACKAGE and TYPE does not have this issue, I haven't tried MODULE.
@NullMarkedhas@Target({MODULE, PACKAGE, TYPE, METHOD, CONSTRUCTOR})@NullUnmarkedhas@Target({PACKAGE, TYPE, METHOD, CONSTRUCTOR})When these annotations are on methods (or constructors), they are inlined, so this:
will be transformed into this:
Other targets like
PACKAGEandTYPEdoes not have this issue, I haven't triedMODULE.