syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [3/3] syncope git commit: Minor: use getter to allow easier override
Date Fri, 19 Oct 2018 06:27:12 GMT
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/443f5a38
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/443f5a38
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/443f5a38

Branch: refs/heads/master
Commit: 443f5a38ea45f15c092c41abb202f897c795c5f2
Parents: 7d239c2
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:58 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/443f5a38/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