Skip to content

Commit

Permalink
Remove unused field and make some fields final in EndpointIndexer
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Nov 7, 2022
1 parent fbfdaeb commit 3a1060a
Showing 1 changed file with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ public abstract class EndpointIndexer<T extends EndpointIndexer<T, PARAM, METHOD
private final Set<DotName> contextTypes;
private final Set<DotName> parameterContainerTypes;
private final MultipartReturnTypeIndexerExtension multipartReturnTypeIndexerExtension;
private final MultipartParameterIndexerExtension multipartParameterIndexerExtension;
private final TargetJavaVersion targetJavaVersion;

protected EndpointIndexer(Builder<T, ?, METHOD> builder) {
Expand All @@ -254,7 +253,6 @@ protected EndpointIndexer(Builder<T, ?, METHOD> builder) {
this.contextTypes = builder.contextTypes;
this.parameterContainerTypes = builder.parameterContainerTypes;
this.multipartReturnTypeIndexerExtension = builder.multipartReturnTypeIndexerExtension;
this.multipartParameterIndexerExtension = builder.multipartParameterIndexerExtension;
this.targetJavaVersion = builder.targetJavaVersion;
}

Expand Down Expand Up @@ -1521,32 +1519,22 @@ public static abstract class Builder<T extends EndpointIndexer<T, ?, METHOD>, B
private Consumer<ResourceMethodCallbackData> resourceMethodCallback;
private Collection<AnnotationsTransformer> annotationsTransformers;
private ApplicationScanningResult applicationScanningResult;
private Set<DotName> contextTypes = new HashSet<>(DEFAULT_CONTEXT_TYPES);
private Set<DotName> parameterContainerTypes = new HashSet<>();
private final Set<DotName> contextTypes = new HashSet<>(DEFAULT_CONTEXT_TYPES);
private final Set<DotName> parameterContainerTypes = new HashSet<>();
private MultipartReturnTypeIndexerExtension multipartReturnTypeIndexerExtension = new MultipartReturnTypeIndexerExtension() {
@Override
public boolean handleMultipartForReturnType(AdditionalWriters additionalWriters, ClassInfo multipartClassInfo,
IndexView indexView) {
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) {
this.multipartReturnTypeIndexerExtension = multipartReturnTypeHandler;
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;
Expand Down

0 comments on commit 3a1060a

Please sign in to comment.