syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [1/3] syncope git commit: Minor: use getter to allow easier override
Date Fri, 19 Oct 2018 06:27:10 GMT
Repository: syncope
Updated Branches:
  refs/heads/2_0_X c46ec3832 -> 1b5a99316
  refs/heads/2_1_X 245f76fff -> 7050d4d6f
  refs/heads/master 7d239c2ac -> 443f5a38e


Minor: use getter to allow easier override


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/7050d4d6
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/7050d4d6
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/7050d4d6

Branch: refs/heads/2_1_X
Commit: 7050d4d6f803f62edb43ee0bd2089b4a9c7e55f6
Parents: 245f76f
Author: Francesco Chicchiriccò <ilgrosso@apache.org>
Authored: Fri Oct 19 08:26:22 2018 +0200
Committer: Francesco Chicchiriccò <ilgrosso@apache.org>
Committed: Fri Oct 19 08:26:22 2018 +0200

----------------------------------------------------------------------
 .../syncope/core/persistence/jpa/entity/AbstractPlainAttr.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/7050d4d6/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/AbstractPlainAttr.java
----------------------------------------------------------------------
diff --git a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/AbstractPlainAttr.java
b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/AbstractPlainAttr.java
index f67adef..7bdcc55 100644
--- a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/AbstractPlainAttr.java
+++ b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/AbstractPlainAttr.java
@@ -61,7 +61,7 @@ public abstract class AbstractPlainAttr<O extends Any<?>> extends
AbstractGenera
     protected abstract boolean addForMultiValue(PlainAttrValue attrValue);
 
     private void checkNonNullSchema() {
-        if (schema == null) {
+        if (getSchema() == null) {
             throw new IllegalStateException("First set owner then schema and finally add
values");
         }
     }


Mime
View raw message