Skip to content

Commit c1c43f2

Browse files
committed
PR feedback on maming
1 parent b8def68 commit c1c43f2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/graphql/schema/GraphQLInputObjectField.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public GraphQLInputType getType() {
101101
*
102102
* @return a value of type T which is the java value of the input field default
103103
*/
104-
public static <T> T getArgumentDefaultValue(GraphQLInputObjectField inputObjectField) {
104+
public static <T> T getInputFieldDefaultValue(GraphQLInputObjectField inputObjectField) {
105105
return getInputValueImpl(inputObjectField.getType(), inputObjectField.getInputFieldDefaultValue());
106106
}
107107

src/test/groovy/graphql/schema/GraphQLInputObjectFieldTest.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class GraphQLInputObjectFieldTest extends Specification {
6565
.defaultValueProgrammatic(1.23d)
6666
.build()
6767
def inputValue = startingField.getInputFieldDefaultValue()
68-
def resolvedValue = GraphQLInputObjectField.getArgumentDefaultValue(startingField)
68+
def resolvedValue = GraphQLInputObjectField.getInputFieldDefaultValue(startingField)
6969

7070
then:
7171
inputValue.isExternal()
@@ -80,7 +80,7 @@ class GraphQLInputObjectFieldTest extends Specification {
8080
.defaultValueLiteral(FloatValue.newFloatValue().value(1.23d).build())
8181
.build()
8282
inputValue = startingField.getInputFieldDefaultValue()
83-
resolvedValue = GraphQLInputObjectField.getArgumentDefaultValue(startingField)
83+
resolvedValue = GraphQLInputObjectField.getInputFieldDefaultValue(startingField)
8484

8585
then:
8686
inputValue.isLiteral()
@@ -94,7 +94,7 @@ class GraphQLInputObjectFieldTest extends Specification {
9494
.description("F1_description")
9595
.build()
9696
inputValue = startingField.getInputFieldDefaultValue()
97-
resolvedValue = GraphQLInputObjectField.getArgumentDefaultValue(startingField)
97+
resolvedValue = GraphQLInputObjectField.getInputFieldDefaultValue(startingField)
9898

9999
then:
100100
inputValue.isNotSet()

0 commit comments

Comments
 (0)