Commit 54b846b
authored
docs: add JSpecify nullness guidelines to AGENTS.md (#13881)
This PR adds a dedicated JSpecify Nullness Guidelines section (Section
5) to the repository-wide `AGENTS.md` onboarding guide for AI coding
assistants.
### Changes
* **Dependency Requirement**: Outlines that JSpecify must be declared in
target module POMs.
* **Handwritten vs. Generated Modules**: Sets clear guidelines
distinguishing handwritten additions from generator-level code
composition (`gapic-generator-java`).
* **JSpecify Type-Use Semantics**: Establishes class-level `@NullMarked`
defaulting, and details specific type-use placement rules for:
* Generics (`List<@nullable String> list`)
* Arrays (`String @nullable [] array`)
* Fully-qualified class names (`com.google.auth.oauth2.@nullable
TokenVerifier`)1 parent 725086d commit 54b846b
1 file changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
49 | 61 | | |
50 | 62 | | |
51 | 63 | | |
52 | | - | |
| 64 | + | |
53 | 65 | | |
54 | 66 | | |
55 | 67 | | |
56 | 68 | | |
57 | | - | |
| 69 | + | |
58 | 70 | | |
59 | 71 | | |
60 | 72 | | |
0 commit comments