Skip to content

Commit

Permalink
Minor tweaking past #393 (use UncheckedIOException for wrapping)
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Mar 4, 2023
1 parent 7c21cc4 commit 91cdf2b
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -659,8 +659,10 @@ else if (_currToken == JsonToken.VALUE_STRING) {
}

/**
* @return whether the token is expected to be an IntToken
* @throws IllegalStateException if the number is too long
* @return Whether the token can be read as {@code JsonToken.VALUE_NUMBER_INT}
* (with possible coercion)
*
* @throws UncheckedIOException if the number is too long
*/
@Override // since 2.12
public boolean isExpectedNumberIntToken()
Expand All @@ -675,7 +677,7 @@ public boolean isExpectedNumberIntToken()
return true;
}
} catch (IOException e) {
throw new IllegalStateException(e);
throw new UncheckedIOException(e);
}
return false;
}
Expand Down

0 comments on commit 91cdf2b

Please sign in to comment.