Skip to content

Commit

Permalink
Refactor: Simplify class names array creation
Browse files Browse the repository at this point in the history
(cherry picked from commit 94cf511)
  • Loading branch information
zakkak authored and gsmet committed Dec 11, 2023
1 parent 5c88887 commit 2475e39
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
import java.util.function.Predicate;
import java.util.function.Supplier;
import java.util.regex.Pattern;
import java.util.stream.Collectors;

import jakarta.ws.rs.ProcessingException;
import jakarta.ws.rs.RuntimeType;
Expand Down Expand Up @@ -287,8 +286,7 @@ void setupClientProxies(JaxrsClientReactiveRecorder recorder,
scannedParameterContainers.addAll(parameterContainersBuildItem.getClassNames());
}
reflectiveClassBuildItemBuildProducer.produce(ReflectiveClassBuildItem
.builder(scannedParameterContainers.stream().map(name -> name.toString()).collect(Collectors.toSet())
.toArray(new String[0]))
.builder(scannedParameterContainers.stream().map(DotName::toString).distinct().toArray(String[]::new))
.methods().fields().build());

if (resourceScanningResultBuildItem.isEmpty()
Expand Down

0 comments on commit 2475e39

Please sign in to comment.