Add JSpecify annotations to normalized, schema, and util classes (Wave 5)#4303
Draft
Add JSpecify annotations to normalized, schema, and util classes (Wave 5)#4303
Conversation
# Conflicts: # src/test/groovy/graphql/archunit/JSpecifyAnnotationsCheck.groovy
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Test ReportTest Results
Code Coverage (Java 25)
Changed Class Coverage (10 classes)
|
TreeParallelTransformer only set List.class as a context var but never NodeAdapter.class. After JSpecify annotations wrapped getVar() calls with assertNotNull(), this caused test failures in TreeParallelTransformerTest and AstTransformerTest. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
dondonz
commented
Mar 7, 2026
| "graphql.analysis.QueryReducer", | ||
| "graphql.analysis.QueryTransformer", | ||
| "graphql.analysis.QueryTraversalOptions", | ||
| "graphql.analysis.QueryTraverser", |
Member
Author
There was a problem hiding this comment.
There are still some classes left in this diff - these are in other currently open PRs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the final wave of JSpecify annotations
Don't review this yet - this is a branch, off a branch, off a branch, so the diff is huge. Opening the PR early to let you know the initial work is done.
Summary
@NullMarkedannotations to 12 remaining classes not covered by other open PRsClasses annotated
graphql.normalized
NormalizedDeferredExecution,NormalizedDocument,NormalizedDocumentFactoryNormalizedField,NormalizedOperation,NormalizedOperationToAstCompilergraphql.schema
SchemaGraph,OneOfInputObjectRulesgraphql.util
CyclicSchemaAnalyzer,QueryGenerator,QueryGeneratorOptions,QueryGeneratorResultTest plan
./gradlew compileJavapasses (NullAway clean)🤖 Generated with Claude Code