File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff 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 ))
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments