From 0ef640a22aa839a407f240b55c3ae557542c5577 Mon Sep 17 00:00:00 2001 From: Knut Wannheden Date: Tue, 8 Jun 2021 14:21:20 +0200 Subject: [PATCH] Fix typo in name of `AdditionalSecuredClassesBuildIem` class --- .../resteasy/deployment/ResteasyBuiltinsProcessor.java | 6 +++--- .../deployment/ResteasyReactiveCommonProcessor.java | 6 +++--- .../quarkus/security/deployment/SecurityProcessor.java | 10 +++++----- ...Iem.java => AdditionalSecuredClassesBuildItem.java} | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) rename extensions/security/spi/src/main/java/io/quarkus/security/spi/{AdditionalSecuredClassesBuildIem.java => AdditionalSecuredClassesBuildItem.java} (72%) diff --git a/extensions/resteasy-classic/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/ResteasyBuiltinsProcessor.java b/extensions/resteasy-classic/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/ResteasyBuiltinsProcessor.java index 5611b52bb1537..87f6d0fe1681a 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/ResteasyBuiltinsProcessor.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/ResteasyBuiltinsProcessor.java @@ -35,7 +35,7 @@ import io.quarkus.resteasy.runtime.vertx.JsonObjectReader; import io.quarkus.resteasy.runtime.vertx.JsonObjectWriter; import io.quarkus.resteasy.server.common.deployment.ResteasyDeploymentBuildItem; -import io.quarkus.security.spi.AdditionalSecuredClassesBuildIem; +import io.quarkus.security.spi.AdditionalSecuredClassesBuildItem; import io.quarkus.vertx.http.deployment.HttpRootPathBuildItem; import io.quarkus.vertx.http.deployment.devmode.NotFoundPageDisplayableEndpointBuildItem; import io.quarkus.vertx.http.deployment.devmode.RouteDescriptionBuildItem; @@ -50,7 +50,7 @@ public class ResteasyBuiltinsProcessor { void setUpDenyAllJaxRs(CombinedIndexBuildItem index, JaxRsSecurityConfig config, ResteasyDeploymentBuildItem resteasyDeployment, - BuildProducer additionalSecuredClasses) { + BuildProducer additionalSecuredClasses) { if (config.denyJaxRs) { final List classes = new ArrayList<>(); @@ -62,7 +62,7 @@ void setUpDenyAllJaxRs(CombinedIndexBuildItem index, } } - additionalSecuredClasses.produce(new AdditionalSecuredClassesBuildIem(classes)); + additionalSecuredClasses.produce(new AdditionalSecuredClassesBuildItem(classes)); } } diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/ResteasyReactiveCommonProcessor.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/ResteasyReactiveCommonProcessor.java index ef9de95ea6db0..c8a01d873dbd9 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/ResteasyReactiveCommonProcessor.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/ResteasyReactiveCommonProcessor.java @@ -53,7 +53,7 @@ import io.quarkus.resteasy.reactive.spi.MessageBodyWriterOverrideBuildItem; import io.quarkus.resteasy.reactive.spi.ReaderInterceptorBuildItem; import io.quarkus.resteasy.reactive.spi.WriterInterceptorBuildItem; -import io.quarkus.security.spi.AdditionalSecuredClassesBuildIem; +import io.quarkus.security.spi.AdditionalSecuredClassesBuildItem; import io.quarkus.security.spi.SecurityTransformerUtils; public class ResteasyReactiveCommonProcessor { @@ -65,7 +65,7 @@ public class ResteasyReactiveCommonProcessor { void setUpDenyAllJaxRs(CombinedIndexBuildItem index, ResteasyReactiveConfig config, Optional resteasyDeployment, - BuildProducer additionalSecuredClasses) { + BuildProducer additionalSecuredClasses) { if (config.denyJaxRs && resteasyDeployment.isPresent()) { final List classes = new ArrayList<>(); @@ -77,7 +77,7 @@ void setUpDenyAllJaxRs(CombinedIndexBuildItem index, } } - additionalSecuredClasses.produce(new AdditionalSecuredClassesBuildIem(classes)); + additionalSecuredClasses.produce(new AdditionalSecuredClassesBuildItem(classes)); } } diff --git a/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/SecurityProcessor.java b/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/SecurityProcessor.java index a204a36b74b2b..73d3d4da6b496 100644 --- a/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/SecurityProcessor.java +++ b/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/SecurityProcessor.java @@ -62,7 +62,7 @@ import io.quarkus.security.runtime.interceptor.SecurityConstrainer; import io.quarkus.security.runtime.interceptor.SecurityHandler; import io.quarkus.security.runtime.interceptor.check.SecurityCheck; -import io.quarkus.security.spi.AdditionalSecuredClassesBuildIem; +import io.quarkus.security.spi.AdditionalSecuredClassesBuildItem; import io.quarkus.security.spi.runtime.AuthorizationController; public class SecurityProcessor { @@ -243,14 +243,14 @@ void registerSecurityInterceptors(BuildProducer transformers, - List additionalSecuredClasses, + List additionalSecuredClasses, SecurityBuildTimeConfig config) { if (config.denyUnannotated) { transformers.produce(new AnnotationsTransformerBuildItem(new DenyingUnannotatedTransformer())); } if (!additionalSecuredClasses.isEmpty()) { Set additionalSecured = new HashSet<>(); - for (AdditionalSecuredClassesBuildIem securedClasses : additionalSecuredClasses) { + for (AdditionalSecuredClassesBuildItem securedClasses : additionalSecuredClasses) { for (ClassInfo additionalSecuredClass : securedClasses.additionalSecuredClasses) { additionalSecured.add(additionalSecuredClass.name().toString()); } @@ -265,13 +265,13 @@ void transformSecurityAnnotations(BuildProducer void gatherSecurityChecks(BuildProducer syntheticBeans, BeanArchiveIndexBuildItem beanArchiveBuildItem, BuildProducer classPredicate, - List additionalSecuredClasses, + List additionalSecuredClasses, SecurityCheckRecorder recorder, List additionalSecurityChecks, SecurityBuildTimeConfig config) { classPredicate.produce(new ApplicationClassPredicateBuildItem(new SecurityCheckStorage.AppPredicate())); final Map additionalSecured = new HashMap<>(); - for (AdditionalSecuredClassesBuildIem securedClasses : additionalSecuredClasses) { + for (AdditionalSecuredClassesBuildItem securedClasses : additionalSecuredClasses) { securedClasses.additionalSecuredClasses.forEach(c -> { if (!additionalSecured.containsKey(c.name())) { additionalSecured.put(c.name(), c); diff --git a/extensions/security/spi/src/main/java/io/quarkus/security/spi/AdditionalSecuredClassesBuildIem.java b/extensions/security/spi/src/main/java/io/quarkus/security/spi/AdditionalSecuredClassesBuildItem.java similarity index 72% rename from extensions/security/spi/src/main/java/io/quarkus/security/spi/AdditionalSecuredClassesBuildIem.java rename to extensions/security/spi/src/main/java/io/quarkus/security/spi/AdditionalSecuredClassesBuildItem.java index c96eed4d34537..0c308f8a6e2be 100644 --- a/extensions/security/spi/src/main/java/io/quarkus/security/spi/AdditionalSecuredClassesBuildIem.java +++ b/extensions/security/spi/src/main/java/io/quarkus/security/spi/AdditionalSecuredClassesBuildItem.java @@ -10,10 +10,10 @@ /** * Contains classes that need to have @DenyAll on all methods that don't have security annotations */ -public final class AdditionalSecuredClassesBuildIem extends MultiBuildItem { +public final class AdditionalSecuredClassesBuildItem extends MultiBuildItem { public final Collection additionalSecuredClasses; - public AdditionalSecuredClassesBuildIem(Collection additionalSecuredClasses) { + public AdditionalSecuredClassesBuildItem(Collection additionalSecuredClasses) { this.additionalSecuredClasses = Collections.unmodifiableCollection(additionalSecuredClasses); } }