From ae5fe05a058211d60e1371eb1154bdcd551c83d2 Mon Sep 17 00:00:00 2001 From: Dustin Kut Moy Cheung Date: Fri, 4 Sep 2020 16:27:28 -0400 Subject: [PATCH] Remove unused imports --- .../pnc/bpm/causeway/ProductMilestoneReleaseManager.java | 2 -- .../bpm/test/RepositoryManagerResultSerializationTest.java | 2 -- .../pnc/coordinator/test/AbstractDependentBuildTest.java | 3 --- .../datastore/repositories/internal/AbstractRepository.java | 1 - .../repositories/BuildConfigurationRepositoryImplTest.java | 1 - .../pnc/facade/providers/ProductVersionProviderImpl.java | 4 ---- .../main/java/org/jboss/pnc/facade/rsql/RSQLProducerImpl.java | 1 - .../java/org/jboss/pnc/facade/BuildPusherRejectionsTest.java | 1 - .../jboss/pnc/integration/endpoints/BuildEndpointTest.java | 3 --- .../jboss/pnc/integration/endpoints/ProjectEndpointTest.java | 1 - .../notifications/ProcessProgressNotificationTest.java | 2 +- .../jboss/pnc/integration/notifications/WsUpdatesClient.java | 1 - .../src/main/java/org/jboss/pnc/client/Configuration.java | 1 - .../java/org/jboss/pnc/rest/endpoints/BuildEndpointImpl.java | 1 - .../pnc/rest/endpoints/internal/api/HealthCheckEndpoint.java | 1 - .../jboss/pnc/spi/repositorymanager/RepositoryManager.java | 1 - 16 files changed, 1 insertion(+), 25 deletions(-) diff --git a/bpm/src/main/java/org/jboss/pnc/bpm/causeway/ProductMilestoneReleaseManager.java b/bpm/src/main/java/org/jboss/pnc/bpm/causeway/ProductMilestoneReleaseManager.java index f43d36b0b8..24909906b0 100644 --- a/bpm/src/main/java/org/jboss/pnc/bpm/causeway/ProductMilestoneReleaseManager.java +++ b/bpm/src/main/java/org/jboss/pnc/bpm/causeway/ProductMilestoneReleaseManager.java @@ -21,7 +21,6 @@ import org.jboss.pnc.bpm.BpmManager; import org.jboss.pnc.bpm.BpmTask; import org.jboss.pnc.bpm.NoEntityException; -import org.jboss.pnc.bpm.model.BpmStringMapNotificationRest; import org.jboss.pnc.bpm.model.causeway.BuildImportResultRest; import org.jboss.pnc.bpm.model.causeway.BuildImportStatus; import org.jboss.pnc.bpm.model.causeway.MilestoneReleaseResultRest; @@ -48,7 +47,6 @@ import java.util.Collection; import java.util.Date; import java.util.Optional; -import java.util.function.BiConsumer; import java.util.function.Function; import org.jboss.pnc.common.concurrent.Sequence; diff --git a/bpm/src/test/java/org/jboss/pnc/bpm/test/RepositoryManagerResultSerializationTest.java b/bpm/src/test/java/org/jboss/pnc/bpm/test/RepositoryManagerResultSerializationTest.java index bf62d73241..c340698e94 100644 --- a/bpm/src/test/java/org/jboss/pnc/bpm/test/RepositoryManagerResultSerializationTest.java +++ b/bpm/src/test/java/org/jboss/pnc/bpm/test/RepositoryManagerResultSerializationTest.java @@ -21,8 +21,6 @@ import org.jboss.pnc.bpm.model.mapper.RepositoryManagerResultMapper; import org.jboss.pnc.bpm.model.RepositoryManagerResultRest; import org.jboss.pnc.common.Configuration; -import org.jboss.pnc.common.json.moduleconfig.IndyRepoDriverModuleConfig; -import org.jboss.pnc.common.json.moduleprovider.PncConfigProvider; import org.jboss.pnc.mapper.AbstractArtifactMapper; import org.jboss.pnc.mapper.AbstractArtifactMapperImpl; import org.jboss.pnc.mapper.api.TargetRepositoryMapper; diff --git a/build-coordinator/src/test/java/org/jboss/pnc/coordinator/test/AbstractDependentBuildTest.java b/build-coordinator/src/test/java/org/jboss/pnc/coordinator/test/AbstractDependentBuildTest.java index acbace24f8..f2e370a322 100644 --- a/build-coordinator/src/test/java/org/jboss/pnc/coordinator/test/AbstractDependentBuildTest.java +++ b/build-coordinator/src/test/java/org/jboss/pnc/coordinator/test/AbstractDependentBuildTest.java @@ -76,7 +76,6 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.Date; -import java.util.HashSet; import java.util.List; import java.util.Optional; import java.util.Set; @@ -84,7 +83,6 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.function.Consumer; import java.util.function.Supplier; -import java.util.logging.Level; import java.util.stream.Collectors; import java.util.stream.Stream; @@ -93,7 +91,6 @@ import org.jboss.pnc.mapper.api.GroupBuildMapper; import static org.mockito.Matchers.any; -import org.mockito.Mockito; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; diff --git a/datastore/src/main/java/org/jboss/pnc/datastore/repositories/internal/AbstractRepository.java b/datastore/src/main/java/org/jboss/pnc/datastore/repositories/internal/AbstractRepository.java index 1047f45be5..a738564b0f 100644 --- a/datastore/src/main/java/org/jboss/pnc/datastore/repositories/internal/AbstractRepository.java +++ b/datastore/src/main/java/org/jboss/pnc/datastore/repositories/internal/AbstractRepository.java @@ -30,7 +30,6 @@ import java.io.Serializable; import java.util.Arrays; import java.util.Collection; -import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; diff --git a/datastore/src/test/java/org/jboss/pnc/datastore/repositories/BuildConfigurationRepositoryImplTest.java b/datastore/src/test/java/org/jboss/pnc/datastore/repositories/BuildConfigurationRepositoryImplTest.java index 28695e61d1..3b8bb96423 100644 --- a/datastore/src/test/java/org/jboss/pnc/datastore/repositories/BuildConfigurationRepositoryImplTest.java +++ b/datastore/src/test/java/org/jboss/pnc/datastore/repositories/BuildConfigurationRepositoryImplTest.java @@ -25,7 +25,6 @@ import org.jboss.pnc.spi.datastore.repositories.BuildConfigurationRepository; import org.jboss.pnc.test.category.ContainerTest; import org.jboss.shrinkwrap.api.Archive; -import org.junit.Assert; import org.junit.Test; import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; diff --git a/facade/src/main/java/org/jboss/pnc/facade/providers/ProductVersionProviderImpl.java b/facade/src/main/java/org/jboss/pnc/facade/providers/ProductVersionProviderImpl.java index 4b9471a616..df33bf66c1 100644 --- a/facade/src/main/java/org/jboss/pnc/facade/providers/ProductVersionProviderImpl.java +++ b/facade/src/main/java/org/jboss/pnc/facade/providers/ProductVersionProviderImpl.java @@ -18,7 +18,6 @@ package org.jboss.pnc.facade.providers; import org.jboss.pnc.common.json.moduleconfig.SystemConfig; -import org.jboss.pnc.dto.GroupConfigurationRef; import org.jboss.pnc.dto.ProductVersion; import org.jboss.pnc.dto.ProductVersionRef; import org.jboss.pnc.dto.response.Page; @@ -37,9 +36,6 @@ import javax.annotation.security.PermitAll; import javax.ejb.Stateless; import javax.inject.Inject; -import java.util.Collections; -import java.util.HashSet; -import java.util.Map; import java.util.Set; import static org.jboss.pnc.spi.datastore.predicates.ProductVersionPredicates.withProductId; diff --git a/facade/src/main/java/org/jboss/pnc/facade/rsql/RSQLProducerImpl.java b/facade/src/main/java/org/jboss/pnc/facade/rsql/RSQLProducerImpl.java index 1a012e1e40..2b9efd2abf 100644 --- a/facade/src/main/java/org/jboss/pnc/facade/rsql/RSQLProducerImpl.java +++ b/facade/src/main/java/org/jboss/pnc/facade/rsql/RSQLProducerImpl.java @@ -18,7 +18,6 @@ package org.jboss.pnc.facade.rsql; import cz.jirutka.rsql.parser.RSQLParser; -import cz.jirutka.rsql.parser.RSQLParserException; import cz.jirutka.rsql.parser.ast.ComparisonOperator; import cz.jirutka.rsql.parser.ast.Node; import cz.jirutka.rsql.parser.ast.RSQLOperators; diff --git a/facade/src/test/java/org/jboss/pnc/facade/BuildPusherRejectionsTest.java b/facade/src/test/java/org/jboss/pnc/facade/BuildPusherRejectionsTest.java index 63d53bd9d7..2a0715e1a3 100644 --- a/facade/src/test/java/org/jboss/pnc/facade/BuildPusherRejectionsTest.java +++ b/facade/src/test/java/org/jboss/pnc/facade/BuildPusherRejectionsTest.java @@ -28,7 +28,6 @@ import org.jboss.pnc.model.BuildRecord; import org.jboss.pnc.model.IdRev; import org.jboss.pnc.spi.coordinator.ProcessException; -import org.jboss.pnc.spi.datastore.InconsistentDataException; import org.jboss.pnc.spi.datastore.repositories.ArtifactRepository; import org.jboss.pnc.spi.datastore.repositories.BuildRecordRepository; import org.junit.Before; diff --git a/integration-test/src/test/java/org/jboss/pnc/integration/endpoints/BuildEndpointTest.java b/integration-test/src/test/java/org/jboss/pnc/integration/endpoints/BuildEndpointTest.java index 46ad2456a5..b43af6abb2 100644 --- a/integration-test/src/test/java/org/jboss/pnc/integration/endpoints/BuildEndpointTest.java +++ b/integration-test/src/test/java/org/jboss/pnc/integration/endpoints/BuildEndpointTest.java @@ -68,11 +68,9 @@ import java.util.HashSet; import java.util.Iterator; import java.util.List; -import java.util.Map; import java.util.Optional; import java.util.Set; import java.util.stream.Collectors; -import java.util.stream.Stream; import static io.restassured.RestAssured.given; import static org.assertj.core.api.Assertions.assertThat; @@ -81,7 +79,6 @@ import org.jboss.pnc.integration.setup.Credentials; import static org.jboss.pnc.integration.setup.RestClientConfiguration.BASE_REST_PATH; import static org.jboss.pnc.rest.configuration.Constants.MAX_PAGE_SIZE; -import static org.junit.Assert.assertEquals; /** * @author Matej Lazar diff --git a/integration-test/src/test/java/org/jboss/pnc/integration/endpoints/ProjectEndpointTest.java b/integration-test/src/test/java/org/jboss/pnc/integration/endpoints/ProjectEndpointTest.java index b785aefd6b..5f14f3370a 100644 --- a/integration-test/src/test/java/org/jboss/pnc/integration/endpoints/ProjectEndpointTest.java +++ b/integration-test/src/test/java/org/jboss/pnc/integration/endpoints/ProjectEndpointTest.java @@ -37,7 +37,6 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import java.util.List; import java.util.Map; import java.util.UUID; diff --git a/integration-test/src/test/java/org/jboss/pnc/integration/notifications/ProcessProgressNotificationTest.java b/integration-test/src/test/java/org/jboss/pnc/integration/notifications/ProcessProgressNotificationTest.java index a79c447999..bb2c343365 100644 --- a/integration-test/src/test/java/org/jboss/pnc/integration/notifications/ProcessProgressNotificationTest.java +++ b/integration-test/src/test/java/org/jboss/pnc/integration/notifications/ProcessProgressNotificationTest.java @@ -53,7 +53,7 @@ import java.util.Arrays; import java.util.Collections; import java.util.function.Supplier; -import static org.jboss.pnc.integration.setup.RestClientConfiguration.BASE_PATH; + import static org.jboss.pnc.integration.setup.RestClientConfiguration.NOTIFICATION_PATH; import static org.junit.Assert.assertTrue; diff --git a/integration-test/src/test/java/org/jboss/pnc/integration/notifications/WsUpdatesClient.java b/integration-test/src/test/java/org/jboss/pnc/integration/notifications/WsUpdatesClient.java index 3734390f0d..79c9bacc7a 100644 --- a/integration-test/src/test/java/org/jboss/pnc/integration/notifications/WsUpdatesClient.java +++ b/integration-test/src/test/java/org/jboss/pnc/integration/notifications/WsUpdatesClient.java @@ -19,7 +19,6 @@ import org.jboss.pnc.common.json.JsonOutputConverterMapper; import org.jboss.pnc.notification.MessageType; -import org.jboss.pnc.rest.endpoints.notifications.NotificationsEndpoint; import org.jboss.pnc.notification.ProgressUpdatesRequest; import org.jboss.pnc.notification.TypedMessage; diff --git a/rest-api/src/main/java/org/jboss/pnc/client/Configuration.java b/rest-api/src/main/java/org/jboss/pnc/client/Configuration.java index 6b3fd2c74c..dd00733bd5 100644 --- a/rest-api/src/main/java/org/jboss/pnc/client/Configuration.java +++ b/rest-api/src/main/java/org/jboss/pnc/client/Configuration.java @@ -26,7 +26,6 @@ import java.util.Base64; import java.util.HashMap; import java.util.Map; -import java.util.function.Function; import java.util.function.Supplier; /** diff --git a/rest/src/main/java/org/jboss/pnc/rest/endpoints/BuildEndpointImpl.java b/rest/src/main/java/org/jboss/pnc/rest/endpoints/BuildEndpointImpl.java index f5255b879b..0da20c14ae 100644 --- a/rest/src/main/java/org/jboss/pnc/rest/endpoints/BuildEndpointImpl.java +++ b/rest/src/main/java/org/jboss/pnc/rest/endpoints/BuildEndpointImpl.java @@ -37,7 +37,6 @@ import org.jboss.pnc.facade.providers.api.ArtifactProvider; import org.jboss.pnc.facade.providers.api.BuildPageInfo; import org.jboss.pnc.facade.providers.api.BuildProvider; -import org.jboss.pnc.facade.validation.InvalidEntityException; import org.jboss.pnc.rest.api.endpoints.BuildEndpoint; import org.jboss.pnc.rest.api.parameters.BuildsFilterParameters; import org.jboss.pnc.rest.api.parameters.PageParameters; diff --git a/rest/src/main/java/org/jboss/pnc/rest/endpoints/internal/api/HealthCheckEndpoint.java b/rest/src/main/java/org/jboss/pnc/rest/endpoints/internal/api/HealthCheckEndpoint.java index 0c49e306ea..2cfe9b8171 100644 --- a/rest/src/main/java/org/jboss/pnc/rest/endpoints/internal/api/HealthCheckEndpoint.java +++ b/rest/src/main/java/org/jboss/pnc/rest/endpoints/internal/api/HealthCheckEndpoint.java @@ -22,7 +22,6 @@ import io.swagger.v3.oas.annotations.tags.Tag; import javax.ws.rs.GET; -import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; diff --git a/spi/src/main/java/org/jboss/pnc/spi/repositorymanager/RepositoryManager.java b/spi/src/main/java/org/jboss/pnc/spi/repositorymanager/RepositoryManager.java index 586b3c258a..224f0f23eb 100644 --- a/spi/src/main/java/org/jboss/pnc/spi/repositorymanager/RepositoryManager.java +++ b/spi/src/main/java/org/jboss/pnc/spi/repositorymanager/RepositoryManager.java @@ -19,7 +19,6 @@ import java.util.Map; import org.jboss.pnc.model.BuildRecord; -import org.jboss.pnc.enums.BuildType; import org.jboss.pnc.enums.RepositoryType; import org.jboss.pnc.spi.repositorymanager.model.RepositorySession; import org.jboss.pnc.spi.repositorymanager.model.RunningRepositoryDeletion;