Throw a RuntimeException subclass instead of RuntimeException
This commit is contained in:
parent
3a4e2ec3ed
commit
fb7dae4909
|
@ -686,7 +686,7 @@ public class TreeList<E> extends AbstractList<E> {
|
|||
}
|
||||
return rotateLeft();
|
||||
default :
|
||||
throw new RuntimeException("tree inconsistent!");
|
||||
throw new IllegalStateException("tree inconsistent!");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -234,7 +234,7 @@ public class SequencesComparator<T> {
|
|||
}
|
||||
|
||||
// this should not happen
|
||||
throw new RuntimeException("Internal Error");
|
||||
throw new IllegalStateException("Internal Error");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue