@@ -113,7 +113,8 @@ public static CoercedVariables coerceVariableValues(GraphQLSchema schema,
113113 */
114114 public static Map <String , NormalizedInputValue > getNormalizedVariableValues (GraphQLSchema schema ,
115115 List <VariableDefinition > variableDefinitions ,
116- RawVariables rawVariables , Locale locale ) {
116+ RawVariables rawVariables ,
117+ Locale locale ) {
117118 GraphqlFieldVisibility fieldVisibility = schema .getCodeRegistry ().getFieldVisibility ();
118119 Map <String , NormalizedInputValue > result = new LinkedHashMap <>();
119120 for (VariableDefinition variableDefinition : variableDefinitions ) {
@@ -217,15 +218,24 @@ public static Map<String, Object> getArgumentValues(GraphQLCodeRegistry codeRegi
217218 *
218219 * @return a value converted to a literal
219220 */
220- public static Value <?> valueToLiteral (@ NotNull GraphqlFieldVisibility fieldVisibility , @ NotNull InputValueWithState inputValueWithState , @ NotNull GraphQLType type , Locale locale ) {
221+ public static Value <?> valueToLiteral (@ NotNull GraphqlFieldVisibility fieldVisibility ,
222+ @ NotNull InputValueWithState inputValueWithState ,
223+ @ NotNull GraphQLType type ,
224+ Locale locale ) {
221225 return (Value <?>) valueToLiteral (fieldVisibility , inputValueWithState , type , ValueMode .LITERAL , locale );
222226 }
223227
224- public static Value <?> valueToLiteral (@ NotNull InputValueWithState inputValueWithState , @ NotNull GraphQLType type , Locale locale ) {
228+ public static Value <?> valueToLiteral (@ NotNull InputValueWithState inputValueWithState ,
229+ @ NotNull GraphQLType type ,
230+ Locale locale ) {
225231 return (Value <?>) valueToLiteral (DEFAULT_FIELD_VISIBILITY , inputValueWithState , type , ValueMode .LITERAL , locale );
226232 }
227233
228- private static Object valueToLiteral (GraphqlFieldVisibility fieldVisibility , InputValueWithState inputValueWithState , GraphQLType type , ValueMode valueMode , Locale locale ) {
234+ private static Object valueToLiteral (GraphqlFieldVisibility fieldVisibility ,
235+ InputValueWithState inputValueWithState ,
236+ GraphQLType type ,
237+ ValueMode valueMode ,
238+ Locale locale ) {
229239 if (inputValueWithState .isInternal ()) {
230240 if (valueMode == NORMALIZED ) {
231241 return assertShouldNeverHappen ("can't infer normalized structure" );
@@ -251,11 +261,16 @@ private static Object valueToLiteral(GraphqlFieldVisibility fieldVisibility, Inp
251261 *
252262 * @return a value converted to an internal value
253263 */
254- public static Object externalValueToInternalValue (GraphqlFieldVisibility fieldVisibility , Object externalValue , GraphQLInputType type , Locale locale ) {
264+ public static Object externalValueToInternalValue (GraphqlFieldVisibility fieldVisibility ,
265+ Object externalValue ,
266+ GraphQLInputType type ,
267+ Locale locale ) {
255268 return ValuesResolver .externalValueToInternalValue (fieldVisibility , type , externalValue , locale );
256269 }
257270
258- public static Object valueToInternalValue (InputValueWithState inputValueWithState , GraphQLType type , Locale locale ) throws CoercingParseValueException , CoercingParseLiteralException {
271+ public static Object valueToInternalValue (InputValueWithState inputValueWithState ,
272+ GraphQLType type ,
273+ Locale locale ) throws CoercingParseValueException , CoercingParseLiteralException {
259274 DefaultGraphqlFieldVisibility fieldVisibility = DEFAULT_FIELD_VISIBILITY ;
260275 if (inputValueWithState .isInternal ()) {
261276 return inputValueWithState .getValue ();
@@ -272,7 +287,9 @@ public static Object valueToInternalValue(InputValueWithState inputValueWithStat
272287
273288 @ Nullable
274289 @ SuppressWarnings ("unchecked" )
275- public static <T > T getInputValueImpl (GraphQLInputType inputType , InputValueWithState inputValue , Locale locale ) {
290+ public static <T > T getInputValueImpl (GraphQLInputType inputType ,
291+ InputValueWithState inputValue ,
292+ Locale locale ) {
276293 if (inputValue .isNotSet ()) {
277294 return null ;
278295 }
@@ -325,7 +342,11 @@ private static Value externalValueToLiteralForEnum(GraphQLEnumType enumType, Obj
325342 * No validation
326343 */
327344 @ SuppressWarnings ("unchecked" )
328- private static Object externalValueToLiteralForList (GraphqlFieldVisibility fieldVisibility , GraphQLList listType , Object value , ValueMode valueMode , Locale locale ) {
345+ private static Object externalValueToLiteralForList (GraphqlFieldVisibility fieldVisibility ,
346+ GraphQLList listType ,
347+ Object value ,
348+ ValueMode valueMode ,
349+ Locale locale ) {
329350 GraphQLInputType wrappedType = (GraphQLInputType ) listType .getWrappedType ();
330351 List result = FpKit .toListOrSingletonList (value )
331352 .stream ()
@@ -399,7 +420,8 @@ private static Object externalValueToLiteralForObject(GraphqlFieldVisibility fie
399420 */
400421 private static CoercedVariables externalValueToInternalValueForVariables (GraphQLSchema schema ,
401422 List <VariableDefinition > variableDefinitions ,
402- RawVariables rawVariables , Locale locale ) {
423+ RawVariables rawVariables ,
424+ Locale locale ) {
403425 GraphqlFieldVisibility fieldVisibility = schema .getCodeRegistry ().getFieldVisibility ();
404426 Map <String , Object > coercedValues = new LinkedHashMap <>();
405427 for (VariableDefinition variableDefinition : variableDefinitions ) {
@@ -505,7 +527,8 @@ private static Map<String, Argument> argumentMap(List<Argument> arguments) {
505527 @ SuppressWarnings ("unchecked" )
506528 private static Object externalValueToInternalValue (GraphqlFieldVisibility fieldVisibility ,
507529 GraphQLType graphQLType ,
508- Object value , Locale locale ) throws NonNullableValueCoercedAsNullException , CoercingParseValueException {
530+ Object value ,
531+ Locale locale ) throws NonNullableValueCoercedAsNullException , CoercingParseValueException {
509532 if (isNonNull (graphQLType )) {
510533 Object returnValue =
511534 externalValueToInternalValue (fieldVisibility , unwrapOne (graphQLType ), value , locale );
@@ -758,7 +781,8 @@ private static Object literalToInternalValueForList(GraphqlFieldVisibility field
758781 private static Object literalToInternalValueForInputObject (GraphqlFieldVisibility fieldVisibility ,
759782 GraphQLInputObjectType type ,
760783 ObjectValue inputValue ,
761- CoercedVariables coercedVariables , Locale locale ) {
784+ CoercedVariables coercedVariables ,
785+ Locale locale ) {
762786 Map <String , Object > coercedValues = new LinkedHashMap <>();
763787
764788 Map <String , ObjectField > inputFieldsByName = mapObjectValueFieldsByName (inputValue );
0 commit comments