Skip to content

Commit

Permalink
refactor: return an empty object instead of a null value on clone for…
Browse files Browse the repository at this point in the history
… Options
  • Loading branch information
tribiec committed Mar 14, 2024
1 parent ff01bb1 commit 495be4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cl/transbank/model/Options.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public Options clone() {
try {
return (Options) super.clone();
} catch (CloneNotSupportedException e) {
return null;
return (Options) new Object();
}
}

Expand Down

0 comments on commit 495be4f

Please sign in to comment.