We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70b55b6 commit ab9a0f9Copy full SHA for ab9a0f9
1 file changed
src/main/java/org/apache/commons/cli/Option.java
@@ -479,8 +479,8 @@ public Object clone() {
479
final Option option = (Option) super.clone();
480
option.values = new ArrayList<>(values);
481
return option;
482
- } catch (final CloneNotSupportedException cnse) {
483
- throw new IllegalStateException("A CloneNotSupportedException was thrown: " + cnse.getMessage());
+ } catch (final CloneNotSupportedException e) {
+ throw new UnsupportedOperationException(e.getMessage(), e);
484
}
485
486
0 commit comments