Repository navigation
Commit 2fe9ddb
committed
Fix DataFetcherResult.newResult() type parameter bounds for Kotlin JSpecify compatibility
Add `@Nullable` bound to the type parameter of the no-arg `newResult()` factory
method, matching the bounds already present on the class and Builder. Without
this, Kotlin 2.1+ under `@NullMarked` infers `T : Any`, preventing nullable
type arguments like `DataFetcherResult.newResult<String?>()`.
Fixes #4364
https://claude.ai/code/session_01UHAYBmjcgRoFPZbxWFYeF31 parent e0ca061 commit 2fe9ddb
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
0 commit comments