Skip to content

Commit

Permalink
Add throws CloneNotSupportedException to javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson committed Jun 1, 2024
1 parent 0f0ed3e commit 99d1822
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ default boolean isCloneable() {
*
* @param obj object to clone
* @return Clone of object (if immutable, may be same object)
* @throws CloneNotSupportedException if clone not supported
*/
default T clone(T obj) throws CloneNotSupportedException {
throw new CloneNotSupportedException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ default boolean isCloneable() {
*
* @param obj object to clone
* @return Clone of object (if immutable, may be same object)
* @throws CloneNotSupportedException if clone not supported
*/
default T clone(T obj) throws CloneNotSupportedException {
throw new CloneNotSupportedException();
Expand Down

0 comments on commit 99d1822

Please sign in to comment.