From 05d46bf63f059d6b49a30cb14f8f878f7ffd4b7d Mon Sep 17 00:00:00 2001 From: Misagh Moayyed Date: Sun, 24 Nov 2024 17:17:06 +0400 Subject: [PATCH] remove unused imports --- .../apache/syncope/client/ui/commons/HttpResourceStream.java | 1 - .../java/org/apache/syncope/core/rest/cxf/AddDomainFilter.java | 1 - .../java/org/apache/syncope/core/rest/cxf/AddETagFilter.java | 1 - .../apache/syncope/core/rest/cxf/batch/BatchItemRequest.java | 1 - .../apache/syncope/core/rest/cxf/batch/BatchItemResponse.java | 1 - .../common/content/AbstractContentLoaderHandler.java | 1 - .../syncope/core/persistence/jpa/spring/OpenJpaDialect.java | 1 - .../provisioning/api/notification/NotificationJobDelegate.java | 1 - .../core/provisioning/api/pushpull/ProvisioningActions.java | 2 -- .../syncope/core/provisioning/api/pushpull/PushActions.java | 1 - .../core/provisioning/java/DefaultConnIdBundleManager.java | 1 - .../core/provisioning/java/job/ExpiredAccessTokenCleanup.java | 1 - .../syncope/core/provisioning/java/job/ExpiredBatchCleanup.java | 1 - .../core/provisioning/java/job/SystemLoadReporterJob.java | 1 - .../java/job/notification/AbstractNotificationJobDelegate.java | 1 - .../core/provisioning/java/pushpull/DBPasswordPullActions.java | 1 - .../provisioning/java/pushpull/LDAPPasswordPullActions.java | 1 - .../syncope/core/spring/policy/HaveIBeenPwnedPasswordRule.java | 1 - .../java/org/apache/syncope/core/spring/security/Encryptor.java | 1 - .../resources/saml2sp4ui/AbstractSAML2SP4UIResource.java | 1 - .../apache/syncope/client/console/rest/SAML2SPRestClient.java | 1 - .../java/org/apache/syncope/ext/scimv2/cxf/AddETagFilter.java | 1 - .../org/apache/syncope/fit/core/reference/TestPullActions.java | 1 - 23 files changed, 24 deletions(-) diff --git a/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/HttpResourceStream.java b/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/HttpResourceStream.java index c44a2f7f06..f0c49e6a65 100644 --- a/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/HttpResourceStream.java +++ b/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/HttpResourceStream.java @@ -20,7 +20,6 @@ import jakarta.ws.rs.core.MediaType; import java.io.ByteArrayInputStream; -import java.io.IOException; import java.io.InputStream; import java.util.Optional; import org.apache.syncope.client.ui.commons.rest.ResponseHolder; diff --git a/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/AddDomainFilter.java b/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/AddDomainFilter.java index 916ad7ba90..fe79a219a8 100644 --- a/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/AddDomainFilter.java +++ b/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/AddDomainFilter.java @@ -22,7 +22,6 @@ import jakarta.ws.rs.container.ContainerResponseContext; import jakarta.ws.rs.container.ContainerResponseFilter; import jakarta.ws.rs.ext.Provider; -import java.io.IOException; import org.apache.syncope.common.rest.api.RESTHeaders; import org.apache.syncope.core.spring.security.AuthContextUtils; diff --git a/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/AddETagFilter.java b/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/AddETagFilter.java index 25099cc6a8..8182c01a50 100644 --- a/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/AddETagFilter.java +++ b/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/AddETagFilter.java @@ -25,7 +25,6 @@ import jakarta.ws.rs.core.HttpHeaders; import jakarta.ws.rs.ext.Provider; import jakarta.ws.rs.ext.RuntimeDelegate; -import java.io.IOException; import org.apache.commons.lang3.StringUtils; import org.apache.syncope.common.lib.to.AnyTO; import org.apache.syncope.common.lib.to.EntityTO; diff --git a/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/batch/BatchItemRequest.java b/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/batch/BatchItemRequest.java index 3f5496045a..3d20343625 100644 --- a/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/batch/BatchItemRequest.java +++ b/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/batch/BatchItemRequest.java @@ -24,7 +24,6 @@ import jakarta.servlet.http.HttpServletRequestWrapper; import jakarta.ws.rs.core.HttpHeaders; import java.io.ByteArrayInputStream; -import java.io.IOException; import java.util.Collections; import java.util.Enumeration; import java.util.HashMap; diff --git a/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/batch/BatchItemResponse.java b/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/batch/BatchItemResponse.java index 672e523296..80f87327c9 100644 --- a/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/batch/BatchItemResponse.java +++ b/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/batch/BatchItemResponse.java @@ -24,7 +24,6 @@ import jakarta.servlet.http.HttpServletResponse; import jakarta.ws.rs.core.HttpHeaders; import java.io.ByteArrayOutputStream; -import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Collection; diff --git a/core/persistence-common/src/main/java/org/apache/syncope/core/persistence/common/content/AbstractContentLoaderHandler.java b/core/persistence-common/src/main/java/org/apache/syncope/core/persistence/common/content/AbstractContentLoaderHandler.java index 99b62bf66a..99308041cf 100644 --- a/core/persistence-common/src/main/java/org/apache/syncope/core/persistence/common/content/AbstractContentLoaderHandler.java +++ b/core/persistence-common/src/main/java/org/apache/syncope/core/persistence/common/content/AbstractContentLoaderHandler.java @@ -26,7 +26,6 @@ import org.slf4j.LoggerFactory; import org.springframework.core.env.Environment; import org.xml.sax.Attributes; -import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; public abstract class AbstractContentLoaderHandler extends DefaultHandler { diff --git a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/spring/OpenJpaDialect.java b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/spring/OpenJpaDialect.java index 7e48b80e7b..83d4a5b6f0 100644 --- a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/spring/OpenJpaDialect.java +++ b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/spring/OpenJpaDialect.java @@ -18,7 +18,6 @@ import jakarta.persistence.EntityManager; import jakarta.persistence.PersistenceException; import java.sql.Connection; -import java.sql.SQLException; import org.apache.commons.logging.LogFactory; import org.apache.openjpa.persistence.FetchPlan; import org.apache.openjpa.persistence.OpenJPAEntityManager; diff --git a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/notification/NotificationJobDelegate.java b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/notification/NotificationJobDelegate.java index a4a4759eca..adf95bfd6b 100644 --- a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/notification/NotificationJobDelegate.java +++ b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/notification/NotificationJobDelegate.java @@ -20,7 +20,6 @@ import org.apache.syncope.core.persistence.api.entity.task.NotificationTask; import org.apache.syncope.core.persistence.api.entity.task.TaskExec; -import org.apache.syncope.core.provisioning.api.job.JobExecutionException; public interface NotificationJobDelegate { diff --git a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/pushpull/ProvisioningActions.java b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/pushpull/ProvisioningActions.java index e45f85f559..2777f5cbfa 100644 --- a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/pushpull/ProvisioningActions.java +++ b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/pushpull/ProvisioningActions.java @@ -18,8 +18,6 @@ */ package org.apache.syncope.core.provisioning.api.pushpull; -import org.apache.syncope.core.provisioning.api.job.JobExecutionException; - public interface ProvisioningActions { /** diff --git a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/pushpull/PushActions.java b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/pushpull/PushActions.java index 9712f6b882..bbeae66a4f 100644 --- a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/pushpull/PushActions.java +++ b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/pushpull/PushActions.java @@ -22,7 +22,6 @@ import java.util.Set; import org.apache.syncope.common.lib.to.ProvisioningReport; import org.apache.syncope.core.persistence.api.entity.Entity; -import org.apache.syncope.core.provisioning.api.job.JobExecutionException; /** * Interface for actions to be performed during push. diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultConnIdBundleManager.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultConnIdBundleManager.java index 7b9753a3bb..5b2c01f742 100644 --- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultConnIdBundleManager.java +++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultConnIdBundleManager.java @@ -22,7 +22,6 @@ import java.io.IOException; import java.net.URI; import java.net.URL; -import java.security.cert.CertificateException; import java.security.cert.X509Certificate; import java.util.ArrayList; import java.util.Collections; diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/ExpiredAccessTokenCleanup.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/ExpiredAccessTokenCleanup.java index 7054927255..09e4e799f6 100644 --- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/ExpiredAccessTokenCleanup.java +++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/ExpiredAccessTokenCleanup.java @@ -22,7 +22,6 @@ import org.apache.syncope.core.persistence.api.dao.AccessTokenDAO; import org.apache.syncope.core.persistence.api.entity.task.SchedTask; import org.apache.syncope.core.provisioning.api.job.JobExecutionContext; -import org.apache.syncope.core.provisioning.api.job.JobExecutionException; import org.springframework.beans.factory.annotation.Autowired; public class ExpiredAccessTokenCleanup extends AbstractSchedTaskJobDelegate { diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/ExpiredBatchCleanup.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/ExpiredBatchCleanup.java index c9d7d6fe6c..550d2ecc26 100644 --- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/ExpiredBatchCleanup.java +++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/ExpiredBatchCleanup.java @@ -21,7 +21,6 @@ import org.apache.syncope.core.persistence.api.dao.BatchDAO; import org.apache.syncope.core.persistence.api.entity.task.SchedTask; import org.apache.syncope.core.provisioning.api.job.JobExecutionContext; -import org.apache.syncope.core.provisioning.api.job.JobExecutionException; import org.springframework.beans.factory.annotation.Autowired; public class ExpiredBatchCleanup extends AbstractSchedTaskJobDelegate { diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/SystemLoadReporterJob.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/SystemLoadReporterJob.java index 4ee94358fd..82b27baa84 100644 --- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/SystemLoadReporterJob.java +++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/SystemLoadReporterJob.java @@ -21,7 +21,6 @@ import java.lang.management.ManagementFactory; import org.apache.syncope.common.lib.info.SystemInfo; import org.apache.syncope.core.provisioning.api.job.JobExecutionContext; -import org.apache.syncope.core.provisioning.api.job.JobExecutionException; import org.springframework.context.ApplicationEventPublisher; /** diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/notification/AbstractNotificationJobDelegate.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/notification/AbstractNotificationJobDelegate.java index 4692cb9fff..60b1cd50e9 100644 --- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/notification/AbstractNotificationJobDelegate.java +++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/notification/AbstractNotificationJobDelegate.java @@ -31,7 +31,6 @@ import org.apache.syncope.core.persistence.api.utils.ExceptionUtils2; import org.apache.syncope.core.provisioning.api.AuditManager; import org.apache.syncope.core.provisioning.api.event.JobStatusEvent; -import org.apache.syncope.core.provisioning.api.job.JobExecutionException; import org.apache.syncope.core.provisioning.api.job.JobManager; import org.apache.syncope.core.provisioning.api.notification.NotificationJobDelegate; import org.apache.syncope.core.provisioning.api.notification.NotificationManager; diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/DBPasswordPullActions.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/DBPasswordPullActions.java index d8230333ad..9d020b8fae 100644 --- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/DBPasswordPullActions.java +++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/DBPasswordPullActions.java @@ -31,7 +31,6 @@ import org.apache.syncope.core.persistence.api.dao.UserDAO; import org.apache.syncope.core.persistence.api.entity.ConnInstance; import org.apache.syncope.core.provisioning.api.Connector; -import org.apache.syncope.core.provisioning.api.job.JobExecutionException; import org.apache.syncope.core.provisioning.api.pushpull.ProvisioningProfile; import org.apache.syncope.core.provisioning.api.pushpull.PullActions; import org.identityconnectors.framework.common.objects.SyncDelta; diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/LDAPPasswordPullActions.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/LDAPPasswordPullActions.java index 6c3cda2c40..2bb2ff3d25 100644 --- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/LDAPPasswordPullActions.java +++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/LDAPPasswordPullActions.java @@ -30,7 +30,6 @@ import org.apache.syncope.common.lib.types.AnyTypeKind; import org.apache.syncope.common.lib.types.CipherAlgorithm; import org.apache.syncope.core.persistence.api.dao.UserDAO; -import org.apache.syncope.core.provisioning.api.job.JobExecutionException; import org.apache.syncope.core.provisioning.api.pushpull.ProvisioningProfile; import org.apache.syncope.core.provisioning.api.pushpull.PullActions; import org.identityconnectors.common.security.SecurityUtil; diff --git a/core/spring/src/main/java/org/apache/syncope/core/spring/policy/HaveIBeenPwnedPasswordRule.java b/core/spring/src/main/java/org/apache/syncope/core/spring/policy/HaveIBeenPwnedPasswordRule.java index 9ca546bf91..49d4db31ad 100644 --- a/core/spring/src/main/java/org/apache/syncope/core/spring/policy/HaveIBeenPwnedPasswordRule.java +++ b/core/spring/src/main/java/org/apache/syncope/core/spring/policy/HaveIBeenPwnedPasswordRule.java @@ -18,7 +18,6 @@ */ package org.apache.syncope.core.spring.policy; -import java.io.UnsupportedEncodingException; import java.net.URI; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; diff --git a/core/spring/src/main/java/org/apache/syncope/core/spring/security/Encryptor.java b/core/spring/src/main/java/org/apache/syncope/core/spring/security/Encryptor.java index def2bbb159..5886d59e79 100644 --- a/core/spring/src/main/java/org/apache/syncope/core/spring/security/Encryptor.java +++ b/core/spring/src/main/java/org/apache/syncope/core/spring/security/Encryptor.java @@ -18,7 +18,6 @@ */ package org.apache.syncope.core.spring.security; -import java.io.UnsupportedEncodingException; import java.nio.charset.StandardCharsets; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; diff --git a/ext/saml2sp4ui/client-common-ui/src/main/java/org/apache/syncope/client/ui/commons/resources/saml2sp4ui/AbstractSAML2SP4UIResource.java b/ext/saml2sp4ui/client-common-ui/src/main/java/org/apache/syncope/client/ui/commons/resources/saml2sp4ui/AbstractSAML2SP4UIResource.java index 622a45e6c9..ebc63db5cb 100644 --- a/ext/saml2sp4ui/client-common-ui/src/main/java/org/apache/syncope/client/ui/commons/resources/saml2sp4ui/AbstractSAML2SP4UIResource.java +++ b/ext/saml2sp4ui/client-common-ui/src/main/java/org/apache/syncope/client/ui/commons/resources/saml2sp4ui/AbstractSAML2SP4UIResource.java @@ -22,7 +22,6 @@ import jakarta.ws.rs.core.HttpHeaders; import jakarta.ws.rs.core.MediaType; import jakarta.ws.rs.core.Response; -import java.io.IOException; import java.util.Base64; import java.util.stream.Stream; import org.apache.commons.lang3.StringUtils; diff --git a/ext/saml2sp4ui/client-console/src/main/java/org/apache/syncope/client/console/rest/SAML2SPRestClient.java b/ext/saml2sp4ui/client-console/src/main/java/org/apache/syncope/client/console/rest/SAML2SPRestClient.java index 68734761b0..ee996046a2 100644 --- a/ext/saml2sp4ui/client-console/src/main/java/org/apache/syncope/client/console/rest/SAML2SPRestClient.java +++ b/ext/saml2sp4ui/client-console/src/main/java/org/apache/syncope/client/console/rest/SAML2SPRestClient.java @@ -20,7 +20,6 @@ import jakarta.ws.rs.core.MediaType; import jakarta.ws.rs.core.Response; -import java.io.IOException; import java.io.InputStream; import org.apache.cxf.jaxrs.client.WebClient; import org.apache.syncope.client.console.SyncopeConsoleSession; diff --git a/ext/scimv2/scim-rest-cxf/src/main/java/org/apache/syncope/ext/scimv2/cxf/AddETagFilter.java b/ext/scimv2/scim-rest-cxf/src/main/java/org/apache/syncope/ext/scimv2/cxf/AddETagFilter.java index 4794aa2b84..67ce5d4892 100644 --- a/ext/scimv2/scim-rest-cxf/src/main/java/org/apache/syncope/ext/scimv2/cxf/AddETagFilter.java +++ b/ext/scimv2/scim-rest-cxf/src/main/java/org/apache/syncope/ext/scimv2/cxf/AddETagFilter.java @@ -25,7 +25,6 @@ import jakarta.ws.rs.core.HttpHeaders; import jakarta.ws.rs.ext.Provider; import jakarta.ws.rs.ext.RuntimeDelegate; -import java.io.IOException; import java.time.OffsetDateTime; import org.apache.commons.lang3.StringUtils; import org.apache.syncope.ext.scimv2.api.data.SCIMGroup; diff --git a/fit/core-reference/src/main/java/org/apache/syncope/fit/core/reference/TestPullActions.java b/fit/core-reference/src/main/java/org/apache/syncope/fit/core/reference/TestPullActions.java index 7a3e351a21..2537287f21 100644 --- a/fit/core-reference/src/main/java/org/apache/syncope/fit/core/reference/TestPullActions.java +++ b/fit/core-reference/src/main/java/org/apache/syncope/fit/core/reference/TestPullActions.java @@ -25,7 +25,6 @@ import org.apache.syncope.common.lib.request.UserCR; import org.apache.syncope.common.lib.to.EntityTO; import org.apache.syncope.common.lib.types.PatchOperation; -import org.apache.syncope.core.provisioning.api.job.JobExecutionException; import org.apache.syncope.core.provisioning.api.pushpull.IgnoreProvisionException; import org.apache.syncope.core.provisioning.api.pushpull.ProvisioningProfile; import org.apache.syncope.core.provisioning.api.pushpull.PullActions;