File tree 1 file changed +3
-2
lines changed
springdoc-openapi-common/src/main/java/org/springdoc/api
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 42
42
import java .util .Objects ;
43
43
import java .util .Optional ;
44
44
import java .util .Set ;
45
+ import java .util .concurrent .CopyOnWriteArraySet ;
45
46
import java .util .concurrent .Executors ;
46
47
import java .util .stream .Collectors ;
47
48
@@ -130,12 +131,12 @@ public abstract class AbstractOpenApiResource extends SpecFilter {
130
131
/**
131
132
* The constant ADDITIONAL_REST_CONTROLLERS.
132
133
*/
133
- private static final List <Class <?>> ADDITIONAL_REST_CONTROLLERS = Collections . synchronizedList ( new ArrayList <>() );
134
+ private static final Set <Class <?>> ADDITIONAL_REST_CONTROLLERS = new CopyOnWriteArraySet <>();
134
135
135
136
/**
136
137
* The constant HIDDEN_REST_CONTROLLERS.
137
138
*/
138
- private static final List <Class <?>> HIDDEN_REST_CONTROLLERS = Collections . synchronizedList ( new ArrayList <>() );
139
+ private static final Set <Class <?>> HIDDEN_REST_CONTROLLERS = new CopyOnWriteArraySet <>();
139
140
140
141
/**
141
142
* The Open api builder.
You can’t perform that action at this time.
0 commit comments