Removed a compilation warning
@@ -5,9 +5,9 @@ import java.util.HashMap;
import java.util.Map;
/**
- * Graphql clients can send GET or POST HTTP requests. The spec does not make an explicit
- * distinction. So you may need to handle both. The following was tested using
- * a graphiql client tool found here : https://github.com/skevy/graphiql-app
+ * Graphql clients can send GET or POST HTTP requests. The spec does not make an explicit distinction. So you may need
+ * to handle both. The following was tested using a graphiql client tool found here :
+ * https://github.com/skevy/graphiql-app
*
* You should consider bundling graphiql in your application
*
@@ -44,10 +44,9 @@ public class QueryParameters {
return parameters;
}
-
private static Map<String, Object> getVariables(Object variables) {
if (variables instanceof Map) {
- Map<?, ?> inputVars = (Map) variables;
+ Map<?, ?> inputVars = (Map<?, ?>) variables;
Map<String, Object> vars = new HashMap<>();
inputVars.forEach((k, v) -> vars.put(String.valueOf(k), v));
return vars;
