Skip to content

Commit e80effd

Browse files
author
Michael Sonnleitner
committed
review
1 parent 5723442 commit e80effd

File tree

5 files changed

+8
-987
lines changed

5 files changed

+8
-987
lines changed

client/deployment/src/main/java/io/quarkiverse/openapi/generator/deployment/GavItemConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Not meant to be used outside this scope.
1414
* Config items can be applied only on gav
1515
*/
16-
public interface GavItemConfig extends CommonItemConfig {
16+
public interface GavItemConfig {
1717
/**
1818
* List of OpenAPI spec files in GAV to be generated
1919
*/

client/deployment/src/main/java/io/quarkiverse/openapi/generator/deployment/codegen/YamlOrJsonGAVCoordinateOpenApiSpecInputProvider.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
package io.quarkiverse.openapi.generator.deployment.codegen;
22

3-
import static io.quarkiverse.openapi.generator.deployment.CodegenConfig.*;
4-
import static io.quarkiverse.openapi.generator.deployment.CodegenConfig.ConfigName.*;
5-
import static io.quarkiverse.openapi.generator.deployment.codegen.OpenApiGeneratorCodeGenBase.*;
3+
import static io.quarkiverse.openapi.generator.deployment.CodegenConfig.getGlobalConfigName;
4+
import static io.quarkiverse.openapi.generator.deployment.CodegenConfig.ConfigName.INCLUDE_GAVS;
5+
import static io.quarkiverse.openapi.generator.deployment.codegen.OpenApiGeneratorCodeGenBase.SUPPORTED_EXTENSIONS;
66

77
import java.io.IOException;
88
import java.nio.file.Files;
99
import java.nio.file.Path;
10+
import java.util.HashSet;
1011
import java.util.List;
1112
import java.util.Set;
12-
import java.util.stream.Collectors;
1313

1414
import io.quarkus.bootstrap.prebuild.CodeGenException;
1515
import io.quarkus.deployment.CodeGenContext;
@@ -86,8 +86,7 @@ protected boolean specificGAVSpecInputProviderFilter(final CodeGenContext contex
8686
if (includeGavs == null) { // default behavior: all GAVs are included
8787
return true;
8888
}
89-
return includeGavs
90-
.stream().collect(Collectors.toSet())
89+
return new HashSet<>(includeGavs)
9190
.contains(gacString);
9291
}
9392
}

0 commit comments

Comments
 (0)