Skip to content

Commit 4653e94

Browse files
committed
Remove raw-type cast in QuerydslDataFetcher
No longer required as Spring Data accepts MultiMap's containing object values. Closes gh-311
1 parent 22c1472 commit 4653e94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-graphql/src/main/java/org/springframework/graphql/data/query/QuerydslDataFetcher.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public abstract class QuerydslDataFetcher<T> {
121121
* @param environment contextual info for the GraphQL request
122122
* @return the resulting predicate
123123
*/
124-
@SuppressWarnings({"unchecked", "rawtypes"})
124+
@SuppressWarnings({"unchecked"})
125125
protected Predicate buildPredicate(DataFetchingEnvironment environment) {
126126
MultiValueMap<String, Object> parameters = new LinkedMultiValueMap<>();
127127
QuerydslBindings bindings = new QuerydslBindings();
@@ -135,7 +135,7 @@ protected Predicate buildPredicate(DataFetchingEnvironment environment) {
135135
parameters.put(entry.getKey(), values);
136136
}
137137

138-
return BUILDER.getPredicate(this.domainType, (MultiValueMap) parameters, bindings);
138+
return BUILDER.getPredicate(this.domainType, parameters, bindings);
139139
}
140140

141141
protected boolean requiresProjection(Class<?> resultType) {

0 commit comments

Comments
 (0)