Throw a RuntimeException subclass instead of RuntimeException

This commit is contained in:
Gary Gregory 2023-07-06 15:19:23 -04:00
parent 3a4e2ec3ed
commit fb7dae4909
2 changed files with 2 additions and 2 deletions

View File

@ -686,7 +686,7 @@ public class TreeList<E> extends AbstractList<E> {
}
return rotateLeft();
default :
throw new RuntimeException("tree inconsistent!");
throw new IllegalStateException("tree inconsistent!");
}
}

View File

@ -234,7 +234,7 @@ public class SequencesComparator<T> {
}
// this should not happen
throw new RuntimeException("Internal Error");
throw new IllegalStateException("Internal Error");
}