From b675dee8c6db452160712a4af1f64ea88d3cddb5 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Tue, 26 Oct 2021 11:47:21 +0200 Subject: [PATCH] Avoid field injection in build steps It just avoids a warning in our test suite, nothing big. --- .../classtransformer/ClassTransformerProcessor.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/integration-tests/class-transformer/deployment/src/main/java/io/quarkus/it/classtransformer/ClassTransformerProcessor.java b/integration-tests/class-transformer/deployment/src/main/java/io/quarkus/it/classtransformer/ClassTransformerProcessor.java index 6819e66be72a6..5ca661546271e 100644 --- a/integration-tests/class-transformer/deployment/src/main/java/io/quarkus/it/classtransformer/ClassTransformerProcessor.java +++ b/integration-tests/class-transformer/deployment/src/main/java/io/quarkus/it/classtransformer/ClassTransformerProcessor.java @@ -6,8 +6,6 @@ import java.util.Set; import java.util.function.BiFunction; -import javax.inject.Inject; - import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; import org.jboss.jandex.DotName; @@ -32,14 +30,9 @@ public class ClassTransformerProcessor { private static final DotName PATH = DotName.createSimple("javax.ws.rs.Path"); - @Inject - CombinedIndexBuildItem combinedIndex; - - @Inject - BuildProducer transformers; - @BuildStep - public void build() throws Exception { + public void build(CombinedIndexBuildItem combinedIndex, + BuildProducer transformers) throws Exception { final Set pathAnnotatedClasses = new HashSet<>(); Collection annotations = combinedIndex.getIndex().getAnnotations(PATH);