Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix nullable bound on DataFetcherResult.newResult
  • Loading branch information
exijn authored and andimarek committed Aug 19, 2026
commit 0d80da4e6d7ae881b8410b9e3428814d48e63d18
2 changes: 1 addition & 1 deletion src/main/java/graphql/execution/DataFetcherResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public String toString() {
*
* @return a new builder
*/
public static <T> Builder<T> newResult() {
public static <T extends @Nullable Object> Builder<T> newResult() {
return new Builder<>();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package graphql.execution

class DataFetcherResultKotlinInteropTest {
fun nullableNewResultFactoryCompiles(): DataFetcherResult<String?> {
return DataFetcherResult.newResult<String?>()
.data(null)
.build()
}
}
Loading