Skip to content

Commit 0779d31

Browse files
committed
update javadoc for serialize/parseValue
1 parent 69ae51d commit 0779d31

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/graphql/schema/Coercing.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ public interface Coercing<I, O> {
1111
* Called to convert a result of a DataFetcher to a valid runtime value.
1212
*
1313
* @param input is never null
14-
* @return null if not possible/invalid
14+
* @return never null
15+
* @throws graphql.GraphQLException if value input can't be serialized
1516
*/
1617
O serialize(Object input);
1718

@@ -20,7 +21,8 @@ public interface Coercing<I, O> {
2021
* Null if not possible.
2122
*
2223
* @param input is never null
23-
* @return null if not possible/invalid
24+
* @return never null
25+
* @throws graphql.GraphQLException if value input can't be serialized
2426
*/
2527
I parseValue(Object input);
2628

0 commit comments

Comments
 (0)