File tree 2 files changed +13
-6
lines changed
inject/src/main/java/io/avaje/inject/spi 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 6
6
7
7
import java .lang .reflect .ParameterizedType ;
8
8
import java .lang .reflect .Type ;
9
- import java .util .*;
10
- import java .util .concurrent .ConcurrentHashMap ;
9
+ import java .util .HashSet ;
10
+ import java .util .LinkedHashMap ;
11
+ import java .util .List ;
12
+ import java .util .Map ;
13
+ import java .util .Optional ;
14
+ import java .util .Set ;
11
15
12
16
/**
13
17
* Map of types (class types, interfaces and annotations) to a DContextEntry where the
14
18
* entry holds a list of bean instances for that type.
15
19
*/
16
20
final class DBeanMap {
17
21
private static final Optional <Object > EMPTY = Optional .empty ();
18
- private final Map <String , DContextEntry > beans = new ConcurrentHashMap <>();
19
- private final Set <String > qualifiers = Collections . synchronizedSet ( new HashSet <>() );
22
+ private final Map <String , DContextEntry > beans = new LinkedHashMap <>();
23
+ private final Set <String > qualifiers = new HashSet <>();
20
24
21
25
private NextBean nextBean ;
22
26
private Class <? extends AvajeModule > currentModule ;
Original file line number Diff line number Diff line change 2
2
3
3
import jakarta .inject .Provider ;
4
4
5
- import java .util .*;
5
+ import java .util .ArrayList ;
6
+ import java .util .LinkedHashMap ;
7
+ import java .util .List ;
8
+ import java .util .Map ;
6
9
7
10
/**
8
11
* Entry for a given key (bean class, interface class or annotation class).
11
14
*/
12
15
final class DContextEntry {
13
16
14
- private final List <DContextEntryBean > entries = Collections . synchronizedList ( new ArrayList <>(5 ) );
17
+ private final List <DContextEntryBean > entries = new ArrayList <>(5 );
15
18
16
19
@ Override
17
20
public String toString () {
You can’t perform that action at this time.
0 commit comments