Skip to content

Commit

Permalink
Change type of "internal exception" throw for unexpected code path to…
Browse files Browse the repository at this point in the history
… IllegalArgumentException (from RuntimeException)
  • Loading branch information
cowtowncoder committed Nov 9, 2024
1 parent b794405 commit dd0ddeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/tools/jackson/core/util/VersionUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ protected static int parseVersionPart(String s) {
*/

public final static void throwInternal() {
throw new RuntimeException("Internal error: this code path should never get executed");
throw new IllegalStateException("Internal error: this code path should never get executed");
}

public final static <T> T throwInternalReturnAny() {
throw new RuntimeException("Internal error: this code path should never get executed");
throw new IllegalStateException("Internal error: this code path should never get executed");
}
}

0 comments on commit dd0ddeb

Please sign in to comment.