File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/com/aerospike/mapper/tools/utils Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 26
26
import java .lang .reflect .Type ;
27
27
import java .time .Instant ;
28
28
import java .util .Date ;
29
- import java .util .HashMap ;
30
29
import java .util .List ;
31
30
import java .util .Map ;
31
+ import java .util .concurrent .ConcurrentHashMap ;
32
32
33
33
public class TypeUtils {
34
- private static final Map <Class <?>, TypeMapper > mappers = new HashMap <>();
34
+ private static final Map <Class <?>, TypeMapper > mappers = new ConcurrentHashMap <>();
35
35
36
36
public static class AnnotatedType {
37
37
@@ -79,6 +79,7 @@ public boolean isParameterizedType() {
79
79
return parameterizedType != null ;
80
80
}
81
81
82
+ @ SuppressWarnings ("unchecked" )
82
83
public <T > T getAnnotation (Class <T > clazz ) {
83
84
if (this .annotations == null ) {
84
85
return null ;
You can’t perform that action at this time.
0 commit comments