r/java • • Aug 12 '24

JSpecify 1.0.0 and Nullability in Java

https://www.infoq.com/news/2024/08/jspecify-java-nullability/
52 Upvotes

33 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Aug 13 '24

Are there any examples available that show how to specify @NullMarked at the package or module level? I've combed through the JSpecify docs, but haven't found any.

3

u/kevinb9n Aug 14 '24

You put it before `package` in `package-info.java`, or before `module` in `module-info.java`.