From 5a65632017c3e0ed6fcf80ecc7627940771b2c80 Mon Sep 17 00:00:00 2001 From: Rostislav Svoboda Date: Fri, 21 Dec 2018 12:32:03 +0100 Subject: [PATCH] Removal of unused imports --- .../main/java/org/jboss/shamrock/annotations/BuildStep.java | 2 -- .../builditem/substrate/SubstrateOutputBuildItem.java | 1 - .../deployment/steps/ApplicationArchiveMarkerBuildStep.java | 1 - .../org/jboss/shamrock/runtime/graal/MethodReplacement.java | 1 - devmode/src/main/java/org/jboss/shamrock/dev/DevModeMain.java | 1 - .../java/org/jboss/shamrock/dev/RuntimeUpdatesProcessor.java | 2 -- .../main/java/org/jboss/shamrock/example/web/TestFilter.java | 1 - .../main/java/org/jboss/shamrock/example/web/TestServlet.java | 1 - .../jboss/protean/arc/processor/SubclassGeneratorTest.java | 1 - .../protean/arc/test/producer/disposer/DisposerTest.java | 1 - .../org/hibernate/protean/impl/FastBootMetadataBuilder.java | 4 ---- .../org/hibernate/protean/impl/FastbootHibernateProvider.java | 1 - .../org/hibernate/protean/impl/PersistenceUnitsHolder.java | 1 - .../serviceregistry/PreconfiguredServiceRegistryBuilder.java | 1 - .../recording/customservices/ProteanJtaPlatformResolver.java | 2 -- .../java/org/jboss/shamrock/health/test/HealthUnitTest.java | 1 - .../shamrock/jaxrs/runtime/graal/DeleteIIOImageProvider.java | 2 -- .../shamrock/jaxrs/runtime/graal/ShamrockInjectorFactory.java | 1 - .../src/test/java/org/jboss/logmanager/LoggerTests.java | 1 - .../src/test/java/org/jboss/logmanager/TestFileHandler.java | 1 - .../handlers/PeriodicSizeRotatingFileHandlerTests.java | 1 - .../logmanager/handlers/SizeRotatingFileHandlerTests.java | 3 --- .../jdbc/h2/runtime/graalsubstitutions/CompareMode.java | 1 - .../java/org/jboss/shamrock/jpa/HibernateEntityEnhancer.java | 2 -- .../org/jboss/shamrock/jpa/HibernateResourceProcessor.java | 1 - .../shamrock/jpa/PersistenceUnitDescriptorBuildItem.java | 1 - .../shamrock/jpa/enhancer/HibernateEntityEnhancerTest.java | 2 -- .../shamrock/jpa/tests/configurationless/CRUDResource.java | 1 - .../org/jboss/shamrock/maven/components/SetupTemplates.java | 1 - .../src/test/java/org/jboss/shamrock/maven/it/DevMojoIT.java | 1 - .../jboss/shamrock/maven/it/verifier/MavenProcessInvoker.java | 2 -- .../opentracing/runtime/ShamrockTracingDynamicFeature.java | 3 --- .../runtime/interceptor/TransactionalInterceptorBase.java | 2 -- .../jboss/shamrock/undertow/ServletDeploymentBuildItem.java | 1 - .../jboss/shamrock/undertow/ServletExtensionBuildItem.java | 3 --- .../java/org/jboss/shamrock/undertow/UndertowBuildStep.java | 1 - .../shamrock/undertow/runtime/graal/ChannelsSubstitution.java | 2 -- .../jboss/shamrock/vertx/runtime/PemKeyCertConfiguration.java | 1 - .../shamrock/vertx/runtime/PemTrustCertConfiguration.java | 1 - .../org/jboss/shamrock/websockets/WebsocketBuildStep.java | 1 - 40 files changed, 58 deletions(-) diff --git a/core/deployment-api/src/main/java/org/jboss/shamrock/annotations/BuildStep.java b/core/deployment-api/src/main/java/org/jboss/shamrock/annotations/BuildStep.java index f5944b59b7afa..aa788a8c981c8 100644 --- a/core/deployment-api/src/main/java/org/jboss/shamrock/annotations/BuildStep.java +++ b/core/deployment-api/src/main/java/org/jboss/shamrock/annotations/BuildStep.java @@ -21,8 +21,6 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import org.jboss.builder.item.BuildItem; - /** * Indicates that a given method is a build step that is run at deployment time to * create the runtime output. diff --git a/core/deployment/src/main/java/org/jboss/shamrock/deployment/builditem/substrate/SubstrateOutputBuildItem.java b/core/deployment/src/main/java/org/jboss/shamrock/deployment/builditem/substrate/SubstrateOutputBuildItem.java index d739d06527366..4d0ce9a54cd92 100644 --- a/core/deployment/src/main/java/org/jboss/shamrock/deployment/builditem/substrate/SubstrateOutputBuildItem.java +++ b/core/deployment/src/main/java/org/jboss/shamrock/deployment/builditem/substrate/SubstrateOutputBuildItem.java @@ -17,7 +17,6 @@ package org.jboss.shamrock.deployment.builditem.substrate; import org.jboss.builder.item.MultiBuildItem; -import org.jboss.builder.item.SimpleBuildItem; public final class SubstrateOutputBuildItem extends MultiBuildItem { diff --git a/core/deployment/src/main/java/org/jboss/shamrock/deployment/steps/ApplicationArchiveMarkerBuildStep.java b/core/deployment/src/main/java/org/jboss/shamrock/deployment/steps/ApplicationArchiveMarkerBuildStep.java index 88c10911effc6..b7504e0695bad 100644 --- a/core/deployment/src/main/java/org/jboss/shamrock/deployment/steps/ApplicationArchiveMarkerBuildStep.java +++ b/core/deployment/src/main/java/org/jboss/shamrock/deployment/steps/ApplicationArchiveMarkerBuildStep.java @@ -19,7 +19,6 @@ import org.jboss.builder.BuildContext; import org.jboss.builder.BuildStep; import org.jboss.shamrock.deployment.builditem.AdditionalApplicationArchiveMarkerBuildItem; -import org.jboss.shamrock.deployment.builditem.CapabilityBuildItem; public class ApplicationArchiveMarkerBuildStep implements BuildStep { diff --git a/core/runtime/src/main/java/org/jboss/shamrock/runtime/graal/MethodReplacement.java b/core/runtime/src/main/java/org/jboss/shamrock/runtime/graal/MethodReplacement.java index a9ce3b7ca35b3..dbcda64bcd3d7 100644 --- a/core/runtime/src/main/java/org/jboss/shamrock/runtime/graal/MethodReplacement.java +++ b/core/runtime/src/main/java/org/jboss/shamrock/runtime/graal/MethodReplacement.java @@ -18,7 +18,6 @@ import java.lang.annotation.Annotation; import java.lang.reflect.AnnotatedType; -import java.lang.reflect.Field; import java.lang.reflect.Method; import java.lang.reflect.Type; diff --git a/devmode/src/main/java/org/jboss/shamrock/dev/DevModeMain.java b/devmode/src/main/java/org/jboss/shamrock/dev/DevModeMain.java index b6e05398d22d4..7e28e101a40b4 100644 --- a/devmode/src/main/java/org/jboss/shamrock/dev/DevModeMain.java +++ b/devmode/src/main/java/org/jboss/shamrock/dev/DevModeMain.java @@ -26,7 +26,6 @@ import java.util.ArrayList; import java.util.List; import org.eclipse.microprofile.config.Config; -import org.eclipse.microprofile.config.ConfigProvider; import org.jboss.logging.Logger; import org.jboss.shamrock.runtime.Timing; diff --git a/devmode/src/main/java/org/jboss/shamrock/dev/RuntimeUpdatesProcessor.java b/devmode/src/main/java/org/jboss/shamrock/dev/RuntimeUpdatesProcessor.java index 323c2a6d20b4e..57b094225ad4e 100644 --- a/devmode/src/main/java/org/jboss/shamrock/dev/RuntimeUpdatesProcessor.java +++ b/devmode/src/main/java/org/jboss/shamrock/dev/RuntimeUpdatesProcessor.java @@ -17,7 +17,6 @@ package org.jboss.shamrock.dev; import java.io.File; -import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.lang.instrument.ClassDefinition; @@ -38,7 +37,6 @@ import io.undertow.server.HttpHandler; import io.undertow.server.HttpServerExchange; -import io.undertow.util.FileUtils; public class RuntimeUpdatesProcessor { diff --git a/examples/strict/src/main/java/org/jboss/shamrock/example/web/TestFilter.java b/examples/strict/src/main/java/org/jboss/shamrock/example/web/TestFilter.java index a3718c56f06ab..ae6e1af28d936 100644 --- a/examples/strict/src/main/java/org/jboss/shamrock/example/web/TestFilter.java +++ b/examples/strict/src/main/java/org/jboss/shamrock/example/web/TestFilter.java @@ -18,7 +18,6 @@ import java.io.IOException; -import javax.servlet.DispatcherType; import javax.servlet.FilterChain; import javax.servlet.ServletException; import javax.servlet.annotation.WebFilter; diff --git a/examples/strict/src/main/java/org/jboss/shamrock/example/web/TestServlet.java b/examples/strict/src/main/java/org/jboss/shamrock/example/web/TestServlet.java index 9a81549857eac..bb85249678ec8 100644 --- a/examples/strict/src/main/java/org/jboss/shamrock/example/web/TestServlet.java +++ b/examples/strict/src/main/java/org/jboss/shamrock/example/web/TestServlet.java @@ -18,7 +18,6 @@ import java.io.IOException; -import javax.enterprise.context.Dependent; import javax.inject.Inject; import javax.servlet.annotation.WebInitParam; import javax.servlet.annotation.WebServlet; diff --git a/ext/arc/processor/src/test/java/org/jboss/protean/arc/processor/SubclassGeneratorTest.java b/ext/arc/processor/src/test/java/org/jboss/protean/arc/processor/SubclassGeneratorTest.java index 1d71d8d8dccdd..926f8a4d1fb04 100644 --- a/ext/arc/processor/src/test/java/org/jboss/protean/arc/processor/SubclassGeneratorTest.java +++ b/ext/arc/processor/src/test/java/org/jboss/protean/arc/processor/SubclassGeneratorTest.java @@ -25,7 +25,6 @@ import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Target; -import java.util.function.Predicate; import javax.annotation.Priority; import javax.enterprise.context.Dependent; diff --git a/ext/arc/tests/src/test/java/org/jboss/protean/arc/test/producer/disposer/DisposerTest.java b/ext/arc/tests/src/test/java/org/jboss/protean/arc/test/producer/disposer/DisposerTest.java index dd0de44842325..21766922e87f9 100644 --- a/ext/arc/tests/src/test/java/org/jboss/protean/arc/test/producer/disposer/DisposerTest.java +++ b/ext/arc/tests/src/test/java/org/jboss/protean/arc/test/producer/disposer/DisposerTest.java @@ -32,7 +32,6 @@ import org.jboss.protean.arc.InstanceHandle; import org.jboss.protean.arc.test.ArcTestContainer; import org.jboss.protean.arc.test.MyQualifier; -import org.junit.Assert; import org.junit.Rule; import org.junit.Test; diff --git a/ext/hibernate-orm-protean/src/main/java/org/hibernate/protean/impl/FastBootMetadataBuilder.java b/ext/hibernate-orm-protean/src/main/java/org/hibernate/protean/impl/FastBootMetadataBuilder.java index dcde62ef69151..a1400f0a118c7 100644 --- a/ext/hibernate-orm-protean/src/main/java/org/hibernate/protean/impl/FastBootMetadataBuilder.java +++ b/ext/hibernate-orm-protean/src/main/java/org/hibernate/protean/impl/FastBootMetadataBuilder.java @@ -17,7 +17,6 @@ package org.hibernate.protean.impl; import java.util.ArrayList; -import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.Map; @@ -32,7 +31,6 @@ import org.hibernate.boot.archive.scan.internal.StandardScanOptions; import org.hibernate.boot.archive.scan.spi.Scanner; import org.hibernate.boot.internal.MetadataImpl; -import org.hibernate.boot.model.IdentifierGeneratorDefinition; import org.hibernate.boot.model.process.spi.ManagedResources; import org.hibernate.boot.model.process.spi.MetadataBuildingProcess; import org.hibernate.boot.registry.BootstrapServiceRegistry; @@ -50,7 +48,6 @@ import org.hibernate.engine.jdbc.dialect.spi.DialectFactory; import org.hibernate.engine.transaction.jta.platform.internal.JBossStandAloneJtaPlatform; import org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform; -import org.hibernate.engine.transaction.jta.platform.spi.JtaPlatformResolver; import org.hibernate.id.factory.spi.MutableIdentifierGeneratorFactory; import org.hibernate.internal.EntityManagerMessageLogger; import org.hibernate.internal.util.StringHelper; @@ -68,7 +65,6 @@ import org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorBuilderImpl; import org.hibernate.resource.transaction.backend.jta.internal.JtaTransactionCoordinatorBuilderImpl; import org.hibernate.service.internal.AbstractServiceRegistryImpl; -import org.hibernate.service.spi.ServiceRegistryImplementor; import static org.hibernate.cfg.AvailableSettings.DATASOURCE; import static org.hibernate.cfg.AvailableSettings.DRIVER; diff --git a/ext/hibernate-orm-protean/src/main/java/org/hibernate/protean/impl/FastbootHibernateProvider.java b/ext/hibernate-orm-protean/src/main/java/org/hibernate/protean/impl/FastbootHibernateProvider.java index 1fee379fbe718..42cf06b8d4789 100644 --- a/ext/hibernate-orm-protean/src/main/java/org/hibernate/protean/impl/FastbootHibernateProvider.java +++ b/ext/hibernate-orm-protean/src/main/java/org/hibernate/protean/impl/FastbootHibernateProvider.java @@ -26,7 +26,6 @@ import javax.persistence.spi.PersistenceUnitInfo; import javax.persistence.spi.ProviderUtil; -import org.hibernate.boot.registry.BootstrapServiceRegistry; import org.hibernate.boot.registry.StandardServiceRegistry; import org.hibernate.boot.registry.internal.StandardServiceRegistryImpl; import org.hibernate.boot.spi.MetadataImplementor; diff --git a/ext/hibernate-orm-protean/src/main/java/org/hibernate/protean/impl/PersistenceUnitsHolder.java b/ext/hibernate-orm-protean/src/main/java/org/hibernate/protean/impl/PersistenceUnitsHolder.java index 9048dd1ed3aec..2e62707ad1a39 100644 --- a/ext/hibernate-orm-protean/src/main/java/org/hibernate/protean/impl/PersistenceUnitsHolder.java +++ b/ext/hibernate-orm-protean/src/main/java/org/hibernate/protean/impl/PersistenceUnitsHolder.java @@ -24,7 +24,6 @@ import javax.persistence.PersistenceException; import org.hibernate.boot.archive.scan.spi.Scanner; -import org.hibernate.cfg.AvailableSettings; import org.hibernate.jpa.boot.internal.ParsedPersistenceXmlDescriptor; import org.hibernate.jpa.boot.internal.PersistenceXmlParser; import org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor; diff --git a/ext/hibernate-orm-protean/src/main/java/org/hibernate/protean/impl/serviceregistry/PreconfiguredServiceRegistryBuilder.java b/ext/hibernate-orm-protean/src/main/java/org/hibernate/protean/impl/serviceregistry/PreconfiguredServiceRegistryBuilder.java index 0b8a1f35c3cd4..d50233ff70b0a 100644 --- a/ext/hibernate-orm-protean/src/main/java/org/hibernate/protean/impl/serviceregistry/PreconfiguredServiceRegistryBuilder.java +++ b/ext/hibernate-orm-protean/src/main/java/org/hibernate/protean/impl/serviceregistry/PreconfiguredServiceRegistryBuilder.java @@ -43,7 +43,6 @@ import org.hibernate.integrator.spi.Integrator; import org.hibernate.internal.EntityManagerMessageLogger; import org.hibernate.internal.util.config.ConfigurationHelper; -import org.hibernate.jmx.internal.JmxServiceInitiator; import org.hibernate.persister.internal.PersisterClassResolverInitiator; import org.hibernate.persister.internal.PersisterFactoryInitiator; import org.hibernate.property.access.internal.PropertyAccessStrategyResolverInitiator; diff --git a/ext/hibernate-orm-protean/src/main/java/org/hibernate/protean/recording/customservices/ProteanJtaPlatformResolver.java b/ext/hibernate-orm-protean/src/main/java/org/hibernate/protean/recording/customservices/ProteanJtaPlatformResolver.java index 0bc1703ca56af..66e37a674da4e 100644 --- a/ext/hibernate-orm-protean/src/main/java/org/hibernate/protean/recording/customservices/ProteanJtaPlatformResolver.java +++ b/ext/hibernate-orm-protean/src/main/java/org/hibernate/protean/recording/customservices/ProteanJtaPlatformResolver.java @@ -19,10 +19,8 @@ import java.util.Map; import org.hibernate.boot.registry.StandardServiceInitiator; -import org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformResolverInitiator; import org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform; import org.hibernate.engine.transaction.jta.platform.spi.JtaPlatformResolver; -import org.hibernate.service.Service; import org.hibernate.service.spi.ServiceRegistryImplementor; public final class ProteanJtaPlatformResolver implements StandardServiceInitiator { diff --git a/health/deployment/src/test/java/org/jboss/shamrock/health/test/HealthUnitTest.java b/health/deployment/src/test/java/org/jboss/shamrock/health/test/HealthUnitTest.java index 44b36bdc9b242..daf56e0ecb21d 100644 --- a/health/deployment/src/test/java/org/jboss/shamrock/health/test/HealthUnitTest.java +++ b/health/deployment/src/test/java/org/jboss/shamrock/health/test/HealthUnitTest.java @@ -6,7 +6,6 @@ import org.jboss.shamrock.test.Deployment; import org.jboss.shamrock.test.ShamrockUnitTest; -import org.jboss.shamrock.test.URLResponse; import org.jboss.shamrock.test.URLTester; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.EmptyAsset; diff --git a/jaxrs/runtime/src/main/java/org/jboss/shamrock/jaxrs/runtime/graal/DeleteIIOImageProvider.java b/jaxrs/runtime/src/main/java/org/jboss/shamrock/jaxrs/runtime/graal/DeleteIIOImageProvider.java index 15bccbddc1d3d..fb27cf369b409 100644 --- a/jaxrs/runtime/src/main/java/org/jboss/shamrock/jaxrs/runtime/graal/DeleteIIOImageProvider.java +++ b/jaxrs/runtime/src/main/java/org/jboss/shamrock/jaxrs/runtime/graal/DeleteIIOImageProvider.java @@ -26,8 +26,6 @@ import javax.ws.rs.WebApplicationException; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; import com.oracle.svm.core.annotate.Substitute; import com.oracle.svm.core.annotate.TargetClass; diff --git a/jaxrs/runtime/src/main/java/org/jboss/shamrock/jaxrs/runtime/graal/ShamrockInjectorFactory.java b/jaxrs/runtime/src/main/java/org/jboss/shamrock/jaxrs/runtime/graal/ShamrockInjectorFactory.java index e3236a52babe6..8d97294990922 100644 --- a/jaxrs/runtime/src/main/java/org/jboss/shamrock/jaxrs/runtime/graal/ShamrockInjectorFactory.java +++ b/jaxrs/runtime/src/main/java/org/jboss/shamrock/jaxrs/runtime/graal/ShamrockInjectorFactory.java @@ -17,7 +17,6 @@ package org.jboss.shamrock.jaxrs.runtime.graal; import java.lang.reflect.Constructor; -import java.util.List; import java.util.concurrent.CompletionStage; import java.util.function.Function; diff --git a/jboss-logmanager-embedded/src/test/java/org/jboss/logmanager/LoggerTests.java b/jboss-logmanager-embedded/src/test/java/org/jboss/logmanager/LoggerTests.java index 9977bd0bd9a61..08b9c4b6f3909 100644 --- a/jboss-logmanager-embedded/src/test/java/org/jboss/logmanager/LoggerTests.java +++ b/jboss-logmanager-embedded/src/test/java/org/jboss/logmanager/LoggerTests.java @@ -24,7 +24,6 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; -import java.util.logging.Filter; import java.util.logging.Handler; import java.util.logging.LogRecord; diff --git a/jboss-logmanager-embedded/src/test/java/org/jboss/logmanager/TestFileHandler.java b/jboss-logmanager-embedded/src/test/java/org/jboss/logmanager/TestFileHandler.java index 2aa55a072a485..40aaefc7d178e 100644 --- a/jboss-logmanager-embedded/src/test/java/org/jboss/logmanager/TestFileHandler.java +++ b/jboss-logmanager-embedded/src/test/java/org/jboss/logmanager/TestFileHandler.java @@ -16,7 +16,6 @@ package org.jboss.logmanager; -import java.io.File; import java.io.FileNotFoundException; import org.jboss.logmanager.handlers.FileHandler; diff --git a/jboss-logmanager-embedded/src/test/java/org/jboss/logmanager/handlers/PeriodicSizeRotatingFileHandlerTests.java b/jboss-logmanager-embedded/src/test/java/org/jboss/logmanager/handlers/PeriodicSizeRotatingFileHandlerTests.java index 94fe49428b0bd..a162c27bb20c8 100644 --- a/jboss-logmanager-embedded/src/test/java/org/jboss/logmanager/handlers/PeriodicSizeRotatingFileHandlerTests.java +++ b/jboss-logmanager-embedded/src/test/java/org/jboss/logmanager/handlers/PeriodicSizeRotatingFileHandlerTests.java @@ -17,7 +17,6 @@ package org.jboss.logmanager.handlers; import java.io.File; -import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.text.SimpleDateFormat; diff --git a/jboss-logmanager-embedded/src/test/java/org/jboss/logmanager/handlers/SizeRotatingFileHandlerTests.java b/jboss-logmanager-embedded/src/test/java/org/jboss/logmanager/handlers/SizeRotatingFileHandlerTests.java index 72b8848388a06..7a1a2e1d89524 100644 --- a/jboss-logmanager-embedded/src/test/java/org/jboss/logmanager/handlers/SizeRotatingFileHandlerTests.java +++ b/jboss-logmanager-embedded/src/test/java/org/jboss/logmanager/handlers/SizeRotatingFileHandlerTests.java @@ -17,16 +17,13 @@ package org.jboss.logmanager.handlers; import java.io.File; -import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.text.SimpleDateFormat; import java.util.Date; -import java.util.List; import org.junit.Assert; import org.junit.Test; -import org.junit.runner.RunWith; /** * @author James R. Perkins diff --git a/jdbc/jdbc-h2/jdbc-h2-runtime/src/main/java/org/jboss/shamrock/jdbc/h2/runtime/graalsubstitutions/CompareMode.java b/jdbc/jdbc-h2/jdbc-h2-runtime/src/main/java/org/jboss/shamrock/jdbc/h2/runtime/graalsubstitutions/CompareMode.java index f14827b2df5d2..2cb9ff60807b7 100644 --- a/jdbc/jdbc-h2/jdbc-h2-runtime/src/main/java/org/jboss/shamrock/jdbc/h2/runtime/graalsubstitutions/CompareMode.java +++ b/jdbc/jdbc-h2/jdbc-h2-runtime/src/main/java/org/jboss/shamrock/jdbc/h2/runtime/graalsubstitutions/CompareMode.java @@ -3,7 +3,6 @@ import org.h2.engine.SysProperties; import com.oracle.svm.core.annotate.Alias; -import com.oracle.svm.core.annotate.Inject; import com.oracle.svm.core.annotate.Substitute; import com.oracle.svm.core.annotate.TargetClass; diff --git a/jpa/deployment/src/main/java/org/jboss/shamrock/jpa/HibernateEntityEnhancer.java b/jpa/deployment/src/main/java/org/jboss/shamrock/jpa/HibernateEntityEnhancer.java index 46331aea738fe..a4918e20029d3 100644 --- a/jpa/deployment/src/main/java/org/jboss/shamrock/jpa/HibernateEntityEnhancer.java +++ b/jpa/deployment/src/main/java/org/jboss/shamrock/jpa/HibernateEntityEnhancer.java @@ -16,9 +16,7 @@ package org.jboss.shamrock.jpa; -import java.util.Objects; import java.util.function.BiFunction; -import java.util.function.Function; import org.hibernate.bytecode.enhance.spi.DefaultEnhancementContext; import org.hibernate.bytecode.enhance.spi.Enhancer; diff --git a/jpa/deployment/src/main/java/org/jboss/shamrock/jpa/HibernateResourceProcessor.java b/jpa/deployment/src/main/java/org/jboss/shamrock/jpa/HibernateResourceProcessor.java index 15365b8fe5492..88adee4b60da4 100644 --- a/jpa/deployment/src/main/java/org/jboss/shamrock/jpa/HibernateResourceProcessor.java +++ b/jpa/deployment/src/main/java/org/jboss/shamrock/jpa/HibernateResourceProcessor.java @@ -31,7 +31,6 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; import org.hibernate.boot.archive.scan.spi.ClassDescriptor; import org.hibernate.cfg.AvailableSettings; -import org.hibernate.cfg.Environment; import org.hibernate.dialect.H2Dialect; import org.hibernate.dialect.MariaDB103Dialect; import org.hibernate.dialect.PostgreSQL95Dialect; diff --git a/jpa/deployment/src/main/java/org/jboss/shamrock/jpa/PersistenceUnitDescriptorBuildItem.java b/jpa/deployment/src/main/java/org/jboss/shamrock/jpa/PersistenceUnitDescriptorBuildItem.java index cde426e4140b1..02b1b419724e5 100644 --- a/jpa/deployment/src/main/java/org/jboss/shamrock/jpa/PersistenceUnitDescriptorBuildItem.java +++ b/jpa/deployment/src/main/java/org/jboss/shamrock/jpa/PersistenceUnitDescriptorBuildItem.java @@ -17,7 +17,6 @@ package org.jboss.shamrock.jpa; import org.hibernate.jpa.boot.internal.ParsedPersistenceXmlDescriptor; -import org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor; import org.jboss.builder.item.MultiBuildItem; public final class PersistenceUnitDescriptorBuildItem extends MultiBuildItem { diff --git a/jpa/deployment/src/test/java/org/jboss/shamrock/jpa/enhancer/HibernateEntityEnhancerTest.java b/jpa/deployment/src/test/java/org/jboss/shamrock/jpa/enhancer/HibernateEntityEnhancerTest.java index 8f3b83e204f0f..c6e1bc22a17f2 100644 --- a/jpa/deployment/src/test/java/org/jboss/shamrock/jpa/enhancer/HibernateEntityEnhancerTest.java +++ b/jpa/deployment/src/test/java/org/jboss/shamrock/jpa/enhancer/HibernateEntityEnhancerTest.java @@ -18,7 +18,6 @@ import java.io.IOException; import java.util.Arrays; -import java.util.Collections; import java.util.HashSet; import java.util.Set; @@ -27,7 +26,6 @@ import org.hibernate.engine.spi.SelfDirtinessTracker; import org.jboss.shamrock.jpa.HibernateEntityEnhancer; -import org.jboss.shamrock.jpa.KnownDomainObjects; import org.junit.Assert; import org.junit.Test; import org.objectweb.asm.ClassReader; diff --git a/jpa/integrationtests/src/main/java/org/shamrock/jpa/tests/configurationless/CRUDResource.java b/jpa/integrationtests/src/main/java/org/shamrock/jpa/tests/configurationless/CRUDResource.java index 00fa84fc7a227..fbb7d15663e6e 100644 --- a/jpa/integrationtests/src/main/java/org/shamrock/jpa/tests/configurationless/CRUDResource.java +++ b/jpa/integrationtests/src/main/java/org/shamrock/jpa/tests/configurationless/CRUDResource.java @@ -3,7 +3,6 @@ import javax.enterprise.context.ApplicationScoped; import javax.inject.Inject; import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; import javax.transaction.Transactional; import javax.transaction.UserTransaction; import javax.ws.rs.GET; diff --git a/maven/src/main/java/org/jboss/shamrock/maven/components/SetupTemplates.java b/maven/src/main/java/org/jboss/shamrock/maven/components/SetupTemplates.java index d055cd22c854f..3b4de1d79286c 100644 --- a/maven/src/main/java/org/jboss/shamrock/maven/components/SetupTemplates.java +++ b/maven/src/main/java/org/jboss/shamrock/maven/components/SetupTemplates.java @@ -20,7 +20,6 @@ import freemarker.cache.ClassTemplateLoader; import freemarker.template.Configuration; import freemarker.template.Template; -import org.apache.maven.model.Model; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.logging.Log; import org.apache.maven.project.MavenProject; diff --git a/maven/src/test/java/org/jboss/shamrock/maven/it/DevMojoIT.java b/maven/src/test/java/org/jboss/shamrock/maven/it/DevMojoIT.java index 82db60a525105..3dae013845f60 100644 --- a/maven/src/test/java/org/jboss/shamrock/maven/it/DevMojoIT.java +++ b/maven/src/test/java/org/jboss/shamrock/maven/it/DevMojoIT.java @@ -1,7 +1,6 @@ package org.jboss.shamrock.maven.it; import com.google.common.collect.ImmutableMap; -import com.google.common.io.Files; import org.apache.commons.io.FileUtils; import org.apache.maven.shared.invoker.MavenInvocationException; import org.jboss.shamrock.maven.it.verifier.MavenProcessInvocationResult; diff --git a/maven/src/test/java/org/jboss/shamrock/maven/it/verifier/MavenProcessInvoker.java b/maven/src/test/java/org/jboss/shamrock/maven/it/verifier/MavenProcessInvoker.java index ca84512af9354..331217b726d1d 100644 --- a/maven/src/test/java/org/jboss/shamrock/maven/it/verifier/MavenProcessInvoker.java +++ b/maven/src/test/java/org/jboss/shamrock/maven/it/verifier/MavenProcessInvoker.java @@ -7,8 +7,6 @@ import org.apache.maven.shared.utils.cli.StreamPumper; import java.io.File; -import java.io.PrintStream; -import java.util.stream.Collectors; /** * An implementation of {@link DefaultInvoker} launching Maven, but does not wait for the termination of the process. diff --git a/opentracing/runtime/src/main/java/org/jboss/shamrock/opentracing/runtime/ShamrockTracingDynamicFeature.java b/opentracing/runtime/src/main/java/org/jboss/shamrock/opentracing/runtime/ShamrockTracingDynamicFeature.java index 0eb8c405e7832..613ec1b2a6ea0 100644 --- a/opentracing/runtime/src/main/java/org/jboss/shamrock/opentracing/runtime/ShamrockTracingDynamicFeature.java +++ b/opentracing/runtime/src/main/java/org/jboss/shamrock/opentracing/runtime/ShamrockTracingDynamicFeature.java @@ -20,14 +20,11 @@ import java.util.Optional; import java.util.logging.Logger; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.CDI; import javax.ws.rs.container.DynamicFeature; import javax.ws.rs.container.ResourceInfo; import javax.ws.rs.core.FeatureContext; import javax.ws.rs.ext.Provider; -import io.opentracing.Tracer; import io.opentracing.contrib.jaxrs2.server.OperationNameProvider; import io.opentracing.contrib.jaxrs2.server.ServerTracingDynamicFeature; import org.eclipse.microprofile.config.Config; diff --git a/transactions/runtime/src/main/java/org/jboss/shamrock/transactions/runtime/interceptor/TransactionalInterceptorBase.java b/transactions/runtime/src/main/java/org/jboss/shamrock/transactions/runtime/interceptor/TransactionalInterceptorBase.java index f7a3e90cb5ac6..c1b95d50cdbfb 100644 --- a/transactions/runtime/src/main/java/org/jboss/shamrock/transactions/runtime/interceptor/TransactionalInterceptorBase.java +++ b/transactions/runtime/src/main/java/org/jboss/shamrock/transactions/runtime/interceptor/TransactionalInterceptorBase.java @@ -21,8 +21,6 @@ import java.lang.annotation.Annotation; import java.util.Set; -import javax.enterprise.inject.Intercepted; -import javax.enterprise.inject.spi.Bean; import javax.inject.Inject; import javax.interceptor.InvocationContext; import javax.transaction.Status; diff --git a/undertow/deployment/src/main/java/org/jboss/shamrock/undertow/ServletDeploymentBuildItem.java b/undertow/deployment/src/main/java/org/jboss/shamrock/undertow/ServletDeploymentBuildItem.java index d44a7fb3aa92d..f48375312b4cb 100644 --- a/undertow/deployment/src/main/java/org/jboss/shamrock/undertow/ServletDeploymentBuildItem.java +++ b/undertow/deployment/src/main/java/org/jboss/shamrock/undertow/ServletDeploymentBuildItem.java @@ -18,7 +18,6 @@ import org.jboss.builder.item.SimpleBuildItem; -import io.undertow.server.HttpHandler; import io.undertow.servlet.api.Deployment; public final class ServletDeploymentBuildItem extends SimpleBuildItem { diff --git a/undertow/deployment/src/main/java/org/jboss/shamrock/undertow/ServletExtensionBuildItem.java b/undertow/deployment/src/main/java/org/jboss/shamrock/undertow/ServletExtensionBuildItem.java index 8e744ebb92647..b678a46495136 100644 --- a/undertow/deployment/src/main/java/org/jboss/shamrock/undertow/ServletExtensionBuildItem.java +++ b/undertow/deployment/src/main/java/org/jboss/shamrock/undertow/ServletExtensionBuildItem.java @@ -17,11 +17,8 @@ package org.jboss.shamrock.undertow; import org.jboss.builder.item.MultiBuildItem; -import org.jboss.builder.item.SimpleBuildItem; -import org.jboss.shamrock.runtime.RuntimeValue; import io.undertow.servlet.ServletExtension; -import io.undertow.servlet.api.DeploymentInfo; public final class ServletExtensionBuildItem extends MultiBuildItem { diff --git a/undertow/deployment/src/main/java/org/jboss/shamrock/undertow/UndertowBuildStep.java b/undertow/deployment/src/main/java/org/jboss/shamrock/undertow/UndertowBuildStep.java index 4415e87ead785..d96f22aff9b6c 100644 --- a/undertow/deployment/src/main/java/org/jboss/shamrock/undertow/UndertowBuildStep.java +++ b/undertow/deployment/src/main/java/org/jboss/shamrock/undertow/UndertowBuildStep.java @@ -92,7 +92,6 @@ import org.jboss.shamrock.deployment.ApplicationArchive; import org.jboss.shamrock.deployment.builditem.ApplicationArchivesBuildItem; import org.jboss.shamrock.deployment.builditem.ArchiveRootBuildItem; -import org.jboss.shamrock.deployment.builditem.BeanContainerBuildItem; import org.jboss.shamrock.deployment.builditem.CombinedIndexBuildItem; import org.jboss.shamrock.deployment.builditem.HotDeploymentConfigFileBuildItem; import org.jboss.shamrock.deployment.builditem.InjectionFactoryBuildItem; diff --git a/undertow/runtime/src/main/java/org/jboss/shamrock/undertow/runtime/graal/ChannelsSubstitution.java b/undertow/runtime/src/main/java/org/jboss/shamrock/undertow/runtime/graal/ChannelsSubstitution.java index a6fa96e26b7e4..af750e6484949 100644 --- a/undertow/runtime/src/main/java/org/jboss/shamrock/undertow/runtime/graal/ChannelsSubstitution.java +++ b/undertow/runtime/src/main/java/org/jboss/shamrock/undertow/runtime/graal/ChannelsSubstitution.java @@ -23,9 +23,7 @@ import org.xnio.channels.StreamSourceChannel; -import com.oracle.svm.core.annotate.Alias; import com.oracle.svm.core.annotate.Delete; -import com.oracle.svm.core.annotate.Inject; import com.oracle.svm.core.annotate.Substitute; import com.oracle.svm.core.annotate.TargetClass; diff --git a/vertx/runtime/src/main/java/org/jboss/shamrock/vertx/runtime/PemKeyCertConfiguration.java b/vertx/runtime/src/main/java/org/jboss/shamrock/vertx/runtime/PemKeyCertConfiguration.java index 1489d95f11792..cb619780e199c 100644 --- a/vertx/runtime/src/main/java/org/jboss/shamrock/vertx/runtime/PemKeyCertConfiguration.java +++ b/vertx/runtime/src/main/java/org/jboss/shamrock/vertx/runtime/PemKeyCertConfiguration.java @@ -3,7 +3,6 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; import org.jboss.shamrock.runtime.ConfigGroup; -import java.util.List; import java.util.Optional; @ConfigGroup diff --git a/vertx/runtime/src/main/java/org/jboss/shamrock/vertx/runtime/PemTrustCertConfiguration.java b/vertx/runtime/src/main/java/org/jboss/shamrock/vertx/runtime/PemTrustCertConfiguration.java index e21c00351184d..f9a9e3d9a1a23 100644 --- a/vertx/runtime/src/main/java/org/jboss/shamrock/vertx/runtime/PemTrustCertConfiguration.java +++ b/vertx/runtime/src/main/java/org/jboss/shamrock/vertx/runtime/PemTrustCertConfiguration.java @@ -3,7 +3,6 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; import org.jboss.shamrock.runtime.ConfigGroup; -import java.util.List; import java.util.Optional; @ConfigGroup diff --git a/websockets/deployment/src/main/java/org/jboss/shamrock/websockets/WebsocketBuildStep.java b/websockets/deployment/src/main/java/org/jboss/shamrock/websockets/WebsocketBuildStep.java index 9670b3d7f5a48..058c191352c91 100644 --- a/websockets/deployment/src/main/java/org/jboss/shamrock/websockets/WebsocketBuildStep.java +++ b/websockets/deployment/src/main/java/org/jboss/shamrock/websockets/WebsocketBuildStep.java @@ -38,7 +38,6 @@ import org.jboss.shamrock.deployment.builditem.ServiceStartBuildItem; import org.jboss.shamrock.deployment.builditem.substrate.ReflectiveClassBuildItem; import org.jboss.shamrock.undertow.ServletContextAttributeBuildItem; -import org.jboss.shamrock.undertow.ServletDeploymentBuildItem; import org.jboss.shamrock.undertow.UndertowBuildItem; import org.jboss.shamrock.websockets.runtime.WebsocketTemplate;