File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
springdoc-openapi-common/src/main/java/org/springdoc/api Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 4242import java .util .Objects ;
4343import java .util .Optional ;
4444import java .util .Set ;
45+ import java .util .concurrent .CopyOnWriteArraySet ;
4546import java .util .concurrent .Executors ;
4647import java .util .stream .Collectors ;
4748
@@ -130,12 +131,12 @@ public abstract class AbstractOpenApiResource extends SpecFilter {
130131 /**
131132 * The constant ADDITIONAL_REST_CONTROLLERS.
132133 */
133- private static final List <Class <?>> ADDITIONAL_REST_CONTROLLERS = Collections . synchronizedList ( new ArrayList <>() );
134+ private static final Set <Class <?>> ADDITIONAL_REST_CONTROLLERS = new CopyOnWriteArraySet <>();
134135
135136 /**
136137 * The constant HIDDEN_REST_CONTROLLERS.
137138 */
138- private static final List <Class <?>> HIDDEN_REST_CONTROLLERS = Collections . synchronizedList ( new ArrayList <>() );
139+ private static final Set <Class <?>> HIDDEN_REST_CONTROLLERS = new CopyOnWriteArraySet <>();
139140
140141 /**
141142 * The Open api builder.
You can’t perform that action at this time.
0 commit comments