From 3a1060a81ae552cd33afc0cb9dc7589a3e5eeb3c Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Mon, 7 Nov 2022 15:36:58 +0200 Subject: [PATCH] Remove unused field and make some fields final in EndpointIndexer --- .../common/processor/EndpointIndexer.java | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/EndpointIndexer.java b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/EndpointIndexer.java index bdc904a98e525..241c7d3412ae0 100644 --- a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/EndpointIndexer.java +++ b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/EndpointIndexer.java @@ -231,7 +231,6 @@ public abstract class EndpointIndexer contextTypes; private final Set parameterContainerTypes; private final MultipartReturnTypeIndexerExtension multipartReturnTypeIndexerExtension; - private final MultipartParameterIndexerExtension multipartParameterIndexerExtension; private final TargetJavaVersion targetJavaVersion; protected EndpointIndexer(Builder builder) { @@ -254,7 +253,6 @@ protected EndpointIndexer(Builder builder) { this.contextTypes = builder.contextTypes; this.parameterContainerTypes = builder.parameterContainerTypes; this.multipartReturnTypeIndexerExtension = builder.multipartReturnTypeIndexerExtension; - this.multipartParameterIndexerExtension = builder.multipartParameterIndexerExtension; this.targetJavaVersion = builder.targetJavaVersion; } @@ -1521,8 +1519,8 @@ public static abstract class Builder, B private Consumer resourceMethodCallback; private Collection annotationsTransformers; private ApplicationScanningResult applicationScanningResult; - private Set contextTypes = new HashSet<>(DEFAULT_CONTEXT_TYPES); - private Set parameterContainerTypes = new HashSet<>(); + private final Set contextTypes = new HashSet<>(DEFAULT_CONTEXT_TYPES); + private final Set parameterContainerTypes = new HashSet<>(); private MultipartReturnTypeIndexerExtension multipartReturnTypeIndexerExtension = new MultipartReturnTypeIndexerExtension() { @Override public boolean handleMultipartForReturnType(AdditionalWriters additionalWriters, ClassInfo multipartClassInfo, @@ -1530,11 +1528,6 @@ public boolean handleMultipartForReturnType(AdditionalWriters additionalWriters, return false; } }; - public MultipartParameterIndexerExtension multipartParameterIndexerExtension = new MultipartParameterIndexerExtension() { - @Override - public void handleMultipartParameter(ClassInfo multipartClassInfo, IndexView indexView) { - } - }; private TargetJavaVersion targetJavaVersion = new TargetJavaVersion.Unknown(); public B setMultipartReturnTypeIndexerExtension(MultipartReturnTypeIndexerExtension multipartReturnTypeHandler) { @@ -1542,11 +1535,6 @@ public B setMultipartReturnTypeIndexerExtension(MultipartReturnTypeIndexerExtens return (B) this; } - public B setMultipartParameterIndexerExtension(MultipartParameterIndexerExtension multipartParameterHandler) { - this.multipartParameterIndexerExtension = multipartParameterHandler; - return (B) this; - } - public B setDefaultBlocking(BlockingDefault defaultBlocking) { this.defaultBlocking = defaultBlocking; return (B) this;