This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-collections.git
The following commit(s) were added to refs/heads/master by this push: new fb7dae490 Throw a RuntimeException subclass instead of RuntimeException fb7dae490 is described below commit fb7dae4909282517eefaae925bd1527173679fbe Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Jul 6 15:19:23 2023 -0400 Throw a RuntimeException subclass instead of RuntimeException --- src/main/java/org/apache/commons/collections4/list/TreeList.java | 2 +- .../org/apache/commons/collections4/sequence/SequencesComparator.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/collections4/list/TreeList.java b/src/main/java/org/apache/commons/collections4/list/TreeList.java index 65ec38995..9ab1ccd00 100644 --- a/src/main/java/org/apache/commons/collections4/list/TreeList.java +++ b/src/main/java/org/apache/commons/collections4/list/TreeList.java @@ -686,7 +686,7 @@ public class TreeList<E> extends AbstractList<E> { } return rotateLeft(); default : - throw new RuntimeException("tree inconsistent!"); + throw new IllegalStateException("tree inconsistent!"); } } diff --git a/src/main/java/org/apache/commons/collections4/sequence/SequencesComparator.java b/src/main/java/org/apache/commons/collections4/sequence/SequencesComparator.java index acd6aa984..327a7a5d6 100644 --- a/src/main/java/org/apache/commons/collections4/sequence/SequencesComparator.java +++ b/src/main/java/org/apache/commons/collections4/sequence/SequencesComparator.java @@ -234,7 +234,7 @@ public class SequencesComparator<T> { } // this should not happen - throw new RuntimeException("Internal Error"); + throw new IllegalStateException("Internal Error"); }