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-cli.git
The following commit(s) were added to refs/heads/master by this push: new ab9a0f9 Throw a RuntimeException subclass instead of RuntimeException ab9a0f9 is described below commit ab9a0f92ff10ad16af0045976f99692beea9081d Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Jul 6 15:35:27 2023 -0400 Throw a RuntimeException subclass instead of RuntimeException --- src/main/java/org/apache/commons/cli/Option.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/cli/Option.java b/src/main/java/org/apache/commons/cli/Option.java index 9c88310..828c995 100644 --- a/src/main/java/org/apache/commons/cli/Option.java +++ b/src/main/java/org/apache/commons/cli/Option.java @@ -479,8 +479,8 @@ public class Option implements Cloneable, Serializable { final Option option = (Option) super.clone(); option.values = new ArrayList<>(values); return option; - } catch (final CloneNotSupportedException cnse) { - throw new IllegalStateException("A CloneNotSupportedException was thrown: " + cnse.getMessage()); + } catch (final CloneNotSupportedException e) { + throw new UnsupportedOperationException(e.getMessage(), e); } }