Commit b4b272b
Generate astubx from JSON output of jdk-javac-plugin (#1243)
This support will be used to generate an astubx JDK model from the
JSpecify annotated JDK. Includes extensive unit testing and integration
testing of the support. We will likely need to add more features as we
try to support all the annotations present in the JDK (on wildcards,
etc.).
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Added an ASTUBX generator and CLI to produce .astubx bundles capturing
method return-type and nullability metadata; added annotated and
unannotated test libraries and a service provider to supply generated
stubx files.
- **Chores**
- Integrated .astubx generation into the build lifecycle, added new
modules, migrated projects to Java 21 toolchains, and updated formatting
guard to exclude the jdk-annotations module.
- **Tests**
- Added unit and integration tests validating JDK/JSPECIFY nullability
scenarios and end-to-end .astubx generation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Manu Sridharan <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>1 parent 7e2a06f commit b4b272b
File tree
20 files changed
+1595
-18
lines changed- code-coverage-report
- jdk-annotations
- astubx-generator-cli
- src/main/java/com/uber/nullaway/jdkannotations
- astubx-generator
- src
- main/java/com/uber/nullaway/jdkannotations
- test/java/com/uber/nullaway/jdkannotations
- jdk-integration-test
- src/test/java/com/uber/nullaway/jdkannotations
- test-annotated
- src/main/java/com/uber/nullaway/jdkannotations
- test-unannotated
- src/main/java/com/uber/nullaway/jdkannotations
- provider
- jdk-javac-plugin
- src
- main/java/com/uber/nullaway/javacplugin
- test/java/com/uber/nullaway/javacplugin
20 files changed
+1595
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
86 | 88 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
0 commit comments