Repository navigation
Commit 28e1e7a
committed
Fix getDataLoader type bounds for nullable values
The @NullMarked annotation on DataFetchingEnvironment makes type
parameters implicitly non-null, but java-dataloader's DataLoader
declares V extends @nullable Object to allow nullable values.
This mismatch prevents Kotlin consumers from expressing nullable
value types without unsafe casts when returning CompletableFuture
from data fetchers.
Add explicit V extends @nullable Object bound to match DataLoader's
type signature, enabling proper nullability propagation to Kotlin.1 parent ed0791c commit 28e1e7a
3 files changed
Lines changed: 4 additions & 4 deletions
File tree
- src/main/java/graphql/schema
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
0 commit comments