File tree Expand file tree Collapse file tree
src/main/java/org/xmlobjects/util/copy Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77- Removed ` withClone ` and ` withSelfCopy ` from ` CopyBuilder ` .
88- Updated ` Copyable.shallowCopy ` and ` Copyable.deepCopy ` to accept a ` CopyContext ` , which now provides the former
99 ` withClone ` and ` withSelfCopy ` functionality.
10+ - Changed ` CopyBuilder.failOnError ` to be true by default.
1011
1112### Fixed
12- - ` CopyBuilder ` now correctly invokes ` Copyable.shallowCopy ` for the initial object being copied, when provided.
13+ - ` CopyBuilder ` now invokes ` Copyable.shallowCopy ` for the initial object being copied, when provided.
1314
1415## [ 1.2.0] - 2025-11-20
1516### Changed
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public class CopyBuilder {
4343 private final AbstractCloner <?> MAP_CLONER = new MapCloner <>(this );
4444 private final AbstractCloner <?> ARRAY_CLONER = new ArrayCloner (this );
4545
46- private volatile boolean failOnError ;
46+ private volatile boolean failOnError = true ;
4747
4848 public CopyBuilder () {
4949 registerKnownCloners ();
@@ -91,6 +91,10 @@ public CopyBuilder registerNullCopy(Class<?>... types) {
9191 return this ;
9292 }
9393
94+ public boolean isFailOnError () {
95+ return failOnError ;
96+ }
97+
9498 public CopyBuilder failOnError (boolean failOnError ) {
9599 this .failOnError = failOnError ;
96100 return this ;
You can’t perform that action at this time.
0 commit comments