This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/master by this push:
     new 5c2b4de  [SYNCOPE-1520] Fix checkstyle
5c2b4de is described below

commit 5c2b4de1ba2c52e53f545ed0aeb856642c4a2fff
Author: Francesco Chicchiriccò <[email protected]>
AuthorDate: Mon Dec 2 16:32:52 2019 +0100

    [SYNCOPE-1520] Fix checkstyle
---
 .../apache/syncope/core/persistence/jpa/dao/AbstractJPAJSONAnyDAO.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/core/persistence-jpa-json/src/main/java/org/apache/syncope/core/persistence/jpa/dao/AbstractJPAJSONAnyDAO.java
 
b/core/persistence-jpa-json/src/main/java/org/apache/syncope/core/persistence/jpa/dao/AbstractJPAJSONAnyDAO.java
index ca0224c..4881a10 100644
--- 
a/core/persistence-jpa-json/src/main/java/org/apache/syncope/core/persistence/jpa/dao/AbstractJPAJSONAnyDAO.java
+++ 
b/core/persistence-jpa-json/src/main/java/org/apache/syncope/core/persistence/jpa/dao/AbstractJPAJSONAnyDAO.java
@@ -324,7 +324,7 @@ abstract class AbstractJPAJSONAnyDAO extends 
AbstractDAO<AbstractEntity> impleme
             if (attr.getUniqueValue() != null && attr instanceof 
JSONPlainAttr) {
                 PlainSchema schema = attr.getSchema();
                 Optional<A> other = findByPlainAttrUniqueValue(table, 
anyUtils, schema, attr.getUniqueValue(), false);
-                if (other.isEmpty()|| 
other.get().getKey().equals(any.getKey())) {
+                if (other.isEmpty() || 
other.get().getKey().equals(any.getKey())) {
                     LOG.debug("No duplicate value found for {}", 
attr.getUniqueValue().getValueAsString());
                 } else {
                     throw new DuplicateException(

Reply via email to