syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [2/2] syncope git commit: Removing unused method
Date Tue, 13 Dec 2016 13:22:40 GMT
Removing unused method


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

Branch: refs/heads/master
Commit: 2a161fda65312ef288b730a5950432a4bb78d09d
Parents: 06fef36
Author: Francesco Chicchiriccò <ilgrosso@apache.org>
Authored: Tue Dec 13 14:22:07 2016 +0100
Committer: Francesco Chicchiriccò <ilgrosso@apache.org>
Committed: Tue Dec 13 14:22:19 2016 +0100

----------------------------------------------------------------------
 .../core/provisioning/java/data/PolicyDataBinderImpl.java   | 9 ---------
 1 file changed, 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/2a161fda/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/PolicyDataBinderImpl.java
----------------------------------------------------------------------
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/PolicyDataBinderImpl.java
b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/PolicyDataBinderImpl.java
index a9dc2cc..35eac98 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/PolicyDataBinderImpl.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/PolicyDataBinderImpl.java
@@ -19,7 +19,6 @@
 package org.apache.syncope.core.provisioning.java.data;
 
 import org.apache.syncope.core.provisioning.api.data.PolicyDataBinder;
-import org.apache.syncope.common.lib.SyncopeClientException;
 import org.apache.syncope.common.lib.policy.AbstractAccountRuleConf;
 import org.apache.syncope.common.lib.policy.AbstractPasswordRuleConf;
 import org.apache.syncope.common.lib.policy.AbstractPolicyTO;
@@ -28,7 +27,6 @@ import org.apache.syncope.common.lib.policy.AccountRuleConf;
 import org.apache.syncope.common.lib.policy.PasswordPolicyTO;
 import org.apache.syncope.common.lib.policy.PasswordRuleConf;
 import org.apache.syncope.common.lib.policy.PullPolicyTO;
-import org.apache.syncope.common.lib.types.ClientExceptionType;
 import org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO;
 import org.apache.syncope.core.persistence.api.dao.RealmDAO;
 import org.apache.syncope.core.persistence.api.entity.policy.AccountPolicy;
@@ -57,13 +55,6 @@ public class PolicyDataBinderImpl implements PolicyDataBinder {
     @Autowired
     private EntityFactory entityFactory;
 
-    private void throwInvalidPolicy(final Policy policy, final AbstractPolicyTO policyTO)
{
-        SyncopeClientException sce = SyncopeClientException.build(ClientExceptionType.InvalidPolicy);
-        sce.getElements().add(String.format("Cannot update %s from %s",
-                policy.getClass().getSimpleName(), policyTO.getClass().getSimpleName()));
-        throw sce;
-    }
-
     @SuppressWarnings("unchecked")
     private <T extends Policy> T getPolicy(final T policy, final AbstractPolicyTO policyTO)
{
         T result = policy;


Mime
View raw message