Skip to content

Commit

Permalink
Throw a RuntimeException subclass instead of RuntimeException
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jul 6, 2023
1 parent 3a4e2ec commit fb7dae4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ private AVLNode<E> balance() {
}
return rotateLeft();
default :
throw new RuntimeException("tree inconsistent!");
throw new IllegalStateException("tree inconsistent!");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ private Snake getMiddleSnake(final int start1, final int end1, final int start2,
}

// this should not happen
throw new RuntimeException("Internal Error");
throw new IllegalStateException("Internal Error");
}


Expand Down

0 comments on commit fb7dae4

Please sign in to comment.