FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Getdataloader type bounds by ctbarbour · Pull Request #4180 · graphql-java/graphql-java · GitHub

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

Filter by extension

Filter by extension .java  (3) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
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
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public interface DataFetchingEnvironment extends IntrospectionDataFetchingEnviro
* @see org.dataloader.DataLoaderRegistry#getDataLoader(String)
*/
@Nullable
<K, V> DataLoader<K, V> getDataLoader(String dataLoaderName);
<K, V extends @Nullable Object> DataLoader<K, V> getDataLoader(String dataLoaderName);


/**
Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public ExecutionStepInfo getExecutionStepInfo() {


@Override
public <K, V> @Nullable DataLoader<K, V> getDataLoader(String dataLoaderName) {
public <K, V extends @Nullable Object> @Nullable DataLoader<K, V> getDataLoader(String dataLoaderName) {
DataLoader<K, V> dataLoader = dataLoaderRegistry.getDataLoader(dataLoaderName);
if (dataLoader == null) {
return null;
Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public QueryDirectives getQueryDirectives() {
}

@Override
public <K, V> @Nullable DataLoader<K, V> getDataLoader(String dataLoaderName) {
public <K, V extends @Nullable Object> @Nullable DataLoader<K, V> getDataLoader(String dataLoaderName) {
return delegateEnvironment.getDataLoader(dataLoaderName);
}

Expand Down
Loading

Back | FazBrowse Home | New Git URL