@Documented @Retention(value=RUNTIME) @Target(value=FIELD) public @interface OmitOnClone
ReflectionCloneBehavior.
Field with this annotation will be completely skipped whenever object clone is created and will be left with default values.
For non-primitive fields default value is null, for primitives it depends on the type, for instance false for booleans.CloneCopyright © 2020. All rights reserved.