You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2018/03/30 11:20:15 UTC
syncope git commit: [SYNCOPE-956] Fix checkstyle
Repository: syncope
Updated Branches:
refs/heads/master 16c4f5be0 -> 44c9d6ce5
[SYNCOPE-956] Fix checkstyle
Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/44c9d6ce
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/44c9d6ce
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/44c9d6ce
Branch: refs/heads/master
Commit: 44c9d6ce5a39846a5306633541b4d2e03e2bdf23
Parents: 16c4f5b
Author: Francesco Chicchiriccò <il...@apache.org>
Authored: Fri Mar 30 13:20:08 2018 +0200
Committer: Francesco Chicchiriccò <il...@apache.org>
Committed: Fri Mar 30 13:20:08 2018 +0200
----------------------------------------------------------------------
.../core/provisioning/java/data/SAML2IdPDataBinderImpl.java | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/syncope/blob/44c9d6ce/ext/saml2sp/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/SAML2IdPDataBinderImpl.java
----------------------------------------------------------------------
diff --git a/ext/saml2sp/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/SAML2IdPDataBinderImpl.java b/ext/saml2sp/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/SAML2IdPDataBinderImpl.java
index 0d30a50..7e4fb4c 100644
--- a/ext/saml2sp/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/SAML2IdPDataBinderImpl.java
+++ b/ext/saml2sp/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/SAML2IdPDataBinderImpl.java
@@ -33,15 +33,11 @@ import org.apache.syncope.common.lib.types.MappingPurpose;
import org.apache.syncope.common.lib.types.SchemaType;
import org.apache.syncope.core.persistence.api.dao.AnyTypeDAO;
import org.apache.syncope.core.persistence.api.dao.SAML2IdPDAO;
-import org.apache.syncope.core.persistence.api.entity.AnyTypeClass;
-import org.apache.syncope.core.persistence.api.entity.DerSchema;
import org.apache.syncope.core.persistence.api.entity.Entity;
-import org.apache.syncope.core.persistence.api.entity.PlainSchema;
import org.apache.syncope.core.persistence.api.entity.SAML2EntityFactory;
import org.apache.syncope.core.persistence.api.entity.SAML2IdP;
import org.apache.syncope.core.persistence.api.entity.SAML2IdPItem;
import org.apache.syncope.core.persistence.api.entity.SAML2UserTemplate;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
import org.apache.syncope.core.provisioning.api.IntAttrName;
import org.apache.syncope.core.provisioning.api.data.SAML2IdPDataBinder;
import org.apache.syncope.core.provisioning.java.IntAttrNameParser;
@@ -216,7 +212,7 @@ public class SAML2IdPDataBinderImpl implements SAML2IdPDataBinder {
}
private void populateItems(final SAML2IdP idp, final SAML2IdPTO idpTO) {
- for (SAML2IdPItem item : idp.getItems()) {
+ idp.getItems().forEach(item -> {
ItemTO itemTO = new ItemTO();
itemTO.setKey(item.getKey());
BeanUtils.copyProperties(item, itemTO, ITEM_IGNORE_PROPERTIES);
@@ -227,7 +223,7 @@ public class SAML2IdPDataBinderImpl implements SAML2IdPDataBinder {
} else {
idpTO.add(itemTO);
}
- }
+ });
}
@Override