Fixing type check for PlainAttr#setUniqueValue implementations
Project: http://git-wip-us.apache.org/repos/asf/syncope/repo Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/511b653e Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/511b653e Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/511b653e Branch: refs/heads/2_0_NO_JAXB Commit: 511b653ed11d2969e304a8f6e854844559035907 Parents: 7a351f2 Author: Francesco Chicchiriccò <[email protected]> Authored: Tue Jul 19 16:16:19 2016 +0200 Committer: Francesco Chicchiriccò <[email protected]> Committed: Tue Jul 19 16:16:19 2016 +0200 ---------------------------------------------------------------------- .../core/persistence/jpa/entity/anyobject/JPAAPlainAttr.java | 2 +- .../syncope/core/persistence/jpa/entity/conf/JPACPlainAttr.java | 2 +- .../syncope/core/persistence/jpa/entity/group/JPAGPlainAttr.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/syncope/blob/511b653e/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/anyobject/JPAAPlainAttr.java ---------------------------------------------------------------------- diff --git a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/anyobject/JPAAPlainAttr.java b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/anyobject/JPAAPlainAttr.java index fd97268..d65d418 100644 --- a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/anyobject/JPAAPlainAttr.java +++ b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/anyobject/JPAAPlainAttr.java @@ -102,7 +102,7 @@ public class JPAAPlainAttr extends AbstractPlainAttr<AnyObject> implements APlai @Override public void setUniqueValue(final PlainAttrUniqueValue uniqueValue) { - checkType(owner, JPAAPlainAttrUniqueValue.class); + checkType(uniqueValue, JPAAPlainAttrUniqueValue.class); this.uniqueValue = (JPAAPlainAttrUniqueValue) uniqueValue; } } http://git-wip-us.apache.org/repos/asf/syncope/blob/511b653e/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/conf/JPACPlainAttr.java ---------------------------------------------------------------------- diff --git a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/conf/JPACPlainAttr.java b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/conf/JPACPlainAttr.java index cce0b5b..3309356 100644 --- a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/conf/JPACPlainAttr.java +++ b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/conf/JPACPlainAttr.java @@ -110,7 +110,7 @@ public class JPACPlainAttr extends AbstractPlainAttr<Conf> implements CPlainAttr @Override public void setUniqueValue(final PlainAttrUniqueValue uniqueValue) { - checkType(owner, JPACPlainAttrUniqueValue.class); + checkType(uniqueValue, JPACPlainAttrUniqueValue.class); this.uniqueValue = (JPACPlainAttrUniqueValue) uniqueValue; } } http://git-wip-us.apache.org/repos/asf/syncope/blob/511b653e/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/group/JPAGPlainAttr.java ---------------------------------------------------------------------- diff --git a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/group/JPAGPlainAttr.java b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/group/JPAGPlainAttr.java index 644fa27..5744d94 100644 --- a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/group/JPAGPlainAttr.java +++ b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/group/JPAGPlainAttr.java @@ -84,7 +84,7 @@ public class JPAGPlainAttr extends AbstractPlainAttr<Group> implements GPlainAtt @Override public void setUniqueValue(final PlainAttrUniqueValue uniqueValue) { - checkType(owner, JPAGPlainAttrUniqueValue.class); + checkType(uniqueValue, JPAGPlainAttrUniqueValue.class); this.uniqueValue = (JPAGPlainAttrUniqueValue) uniqueValue; } }
