From 495be4fb2dfa1e022d36f1b1e94619cd4741fc82 Mon Sep 17 00:00:00 2001 From: Carlos Tribiec Date: Thu, 14 Mar 2024 17:52:03 -0400 Subject: [PATCH] refactor: return an empty object instead of a null value on clone for Options --- src/main/java/cl/transbank/model/Options.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cl/transbank/model/Options.java b/src/main/java/cl/transbank/model/Options.java index 1be980d..f62cc32 100644 --- a/src/main/java/cl/transbank/model/Options.java +++ b/src/main/java/cl/transbank/model/Options.java @@ -70,7 +70,7 @@ public Options clone() { try { return (Options) super.clone(); } catch (CloneNotSupportedException e) { - return null; + return (Options) new Object(); } }