Skip to content

Commit

Permalink
Merge pull request quarkusio#29093 from geoand/rr-usused-builder-field
Browse files Browse the repository at this point in the history
Remove unused field and make some fields final in EndpointIndexer
  • Loading branch information
gsmet authored Nov 7, 2022
2 parents a6e4724 + 3a1060a commit bd56538
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 bd56538

Please sign in to comment.