Skip to content

Commit a05f6c4

Browse files
committed
Fix typos
1 parent dd237fe commit a05f6c4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/main/java/graphql/scalar/GraphqlStringCoercing.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ private String toStringImpl(Object input) {
2828
return String.valueOf(input);
2929
}
3030

31-
private String parseValueImpl(@NotNull Object input, Locale locale) {
31+
private String parseValueImpl(@NotNull Object input, @NotNull Locale locale) {
3232
if (!(input instanceof String)) {
3333
throw new CoercingParseValueException(
3434
i18nMsg(locale, "String.unexpectedRawValueType", typeName(input))

src/test/groovy/graphql/ScalarsStringTest.groovy

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,12 @@ class ScalarsStringTest extends Specification {
7575
customObject | "foo"
7676
}
7777

78-
@Unroll
79-
def "String parseValue #value into #result"() {
78+
def "String parseValue value into result"() {
8079
expect:
8180
Scalars.GraphQLString.getCoercing().parseValue("123ab", GraphQLContext.default, Locale.default) == "123ab"
8281
}
8382

84-
@Unroll
85-
def "String parseValue #value into #result with deprecated method"() {
83+
def "String parseValue value into result with deprecated method"() {
8684
expect:
8785
Scalars.GraphQLString.getCoercing().parseValue("123ab") == "123ab" // Retain deprecated method for test coverage
8886
}

0 commit comments

Comments
 (0)