Remove raw-type cast in QuerydslDataFetcher

No longer required as Spring Data accepts MultiMap's containing object values.

Closes gh-311
This commit is contained in:
Mark Paluch
2022-03-16 14:49:16 +01:00
parent 22c1472bcc
commit 4653e94976

View File

@@ -121,7 +121,7 @@ public abstract class QuerydslDataFetcher<T> {
* @param environment contextual info for the GraphQL request
* @return the resulting predicate
*/
@SuppressWarnings({"unchecked", "rawtypes"})
@SuppressWarnings({"unchecked"})
protected Predicate buildPredicate(DataFetchingEnvironment environment) {
MultiValueMap<String, Object> parameters = new LinkedMultiValueMap<>();
QuerydslBindings bindings = new QuerydslBindings();
@@ -135,7 +135,7 @@ public abstract class QuerydslDataFetcher<T> {
parameters.put(entry.getKey(), values);
}
return BUILDER.getPredicate(this.domainType, (MultiValueMap) parameters, bindings);
return BUILDER.getPredicate(this.domainType, parameters, bindings);
}
protected boolean requiresProjection(Class<?> resultType) {