Skip to content

Commit

Permalink
Declare LensContext Cloneable (MID-5504)
Browse files Browse the repository at this point in the history
These have been cloneable for a long time anyway.
  • Loading branch information
mederly committed Mar 11, 2020
1 parent 67f1ab9 commit 9ff6a2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -52,7 +52,7 @@
* @author semancik
*
*/
public class LensContext<F extends ObjectType> implements ModelContext<F> {
public class LensContext<F extends ObjectType> implements ModelContext<F>, Cloneable {

private static final long serialVersionUID = -778283437426659540L;
private static final String DOT_CLASS = LensContext.class.getName() + ".";
Expand Down Expand Up @@ -851,6 +851,7 @@ public void normalize() {
}
}

@SuppressWarnings("MethodDoesntCallSuperMethod")
public LensContext<F> clone() {
LensContext<F> clone = new LensContext<>(focusClass, prismContext, provisioningService);
copyValues(clone);
Expand Down
Expand Up @@ -47,7 +47,7 @@
* @author semancik
*
*/
public abstract class LensElementContext<O extends ObjectType> implements ModelElementContext<O> {
public abstract class LensElementContext<O extends ObjectType> implements ModelElementContext<O>, Cloneable {

private static final long serialVersionUID = 1649567559396392861L;

Expand Down

0 comments on commit 9ff6a2b

Please sign in to comment.