Skip to content

Commit 954ec14

Browse files
committed
Tidy
1 parent 64934d6 commit 954ec14

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/graphql/scalar/GraphqlIntCoercing.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,16 @@ private Integer serialiseImpl(Object input, @NotNull Locale locale) {
6464

6565
@NotNull
6666
private Integer parseValueImpl(@NotNull Object input, @NotNull Locale locale) {
67-
if (input instanceof Integer) {
68-
return (Integer) input;
69-
}
70-
7167
if (!(input instanceof Number)) {
7268
throw new CoercingParseValueException(
7369
i18nMsg(locale, "Int.notInt", typeName(input))
7470
);
7571
}
7672

73+
if (input instanceof Integer) {
74+
return (Integer) input;
75+
}
76+
7777
BigInteger result = convertParseValueImpl(input);
7878
if (result == null) {
7979
throw new CoercingParseValueException(

0 commit comments

Comments
 (0)