File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ I have already asked IntelliJ to infer nullity on this class. Can you help me make this more accurate.
2+
3+ Note that JSpecify is already used in this repository so it's already imported.
4+
5+ Analyze this Java class and add JSpecify annotations based on:
6+ 1 . Set the class to be ` @NullMarked `
7+ 2 . Remove all the redundant ` @NonNull ` annotations that IntelliJ added
8+ 3 . Check Javadoc @param tags mentioning "null", "nullable", "may be null"
9+ 4 . Check Javadoc @return tags mentioning "null", "optional", "if available"
10+ 5 . GraphQL specification semantics (nullable fields, non-null by default)
11+ 6 . Method implementations that return null or check for null
12+
13+ IntelliJ's infer nullity code analysis isn't comprehensive so feel free to make corrections.
14+
15+ Finally, please check all of this works, by running the NullAway compile check.
You can’t perform that action at this time.
0 commit comments