This repository was archived by the owner on May 5, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
sormas-rest/src/main/java/de/symeda/sormas/rest/external Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import javax .ws .rs .ApplicationPath ;
55import javax .ws .rs .core .Context ;
66
7+ import org .apache .commons .collections4 .SetUtils ;
78import org .glassfish .jersey .jackson .JacksonFeature ;
89import org .glassfish .jersey .server .ResourceConfig ;
910import org .glassfish .jersey .server .filter .RolesAllowedDynamicFeature ;
1011
11- import com .google .common .collect .Sets ;
12-
1312import de .symeda .sormas .rest .swagger .SwaggerConfig ;
1413import io .swagger .v3 .jaxrs2 .integration .resources .OpenApiResource ;
1514import io .swagger .v3 .oas .integration .SwaggerConfiguration ;
@@ -51,7 +50,7 @@ public ExternalRestResourceConfig() {
5150 OpenAPI openAPI = new OpenAPI ().info (info );
5251 SwaggerConfiguration openAPIConfiguration = new SwaggerConfiguration ().prettyPrint (true )
5352 .openAPI (openAPI )
54- .resourceClasses (Sets . newHashSet (ExternalVisitsResource .class .getSimpleName ()));
53+ .resourceClasses (SetUtils . hashSet (ExternalVisitsResource .class .getSimpleName ()));
5554 OpenApiResource openApiResource = new OpenApiResource ();
5655 openApiResource .setOpenApiConfiguration (openAPIConfiguration );
5756 register (openApiResource );
You can’t perform that action at this time.
0 commit comments