Skip to content
Prev Previous commit
Next Next commit
Merge branch 'master' into copilot/add-jspecify-annotations-to-classes
# Conflicts:
#	.claude/commands/jspecify-annotate.md
  • Loading branch information
dondonz committed Feb 14, 2026
commit 5aaada66572084a3f054c4817f60f7ac99d65870
4 changes: 1 addition & 3 deletions .claude/commands/jspecify-annotate.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ Before annotating, use `grep` to search for how each class is instantiated (e.g.

Analyze this Java class and add JSpecify annotations based on:
1. Set the class to be `@NullMarked`
2. Remove all the redundant `@NonNull` annotations that IntelliJ added
2. Remove all the redundant `@NonNull` annotations that IntelliJ added if there are any
3. Check Javadoc @param tags mentioning "null", "nullable", "may be null"
4. Check Javadoc @return tags mentioning "null", "optional", "if available"
5. Method implementations that return null or check for null
6. GraphQL specification details (see details below)

IntelliJ's infer nullity code analysis isn't comprehensive so feel free to make corrections.

## Pattern Examples

Here are concrete examples of common annotation patterns:
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.