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 2626import java .lang .reflect .Type ;
2727import java .time .Instant ;
2828import java .util .Date ;
29- import java .util .HashMap ;
3029import java .util .List ;
3130import java .util .Map ;
31+ import java .util .concurrent .ConcurrentHashMap ;
3232
3333public class TypeUtils {
34- private static final Map <Class <?>, TypeMapper > mappers = new HashMap <>();
34+ private static final Map <Class <?>, TypeMapper > mappers = new ConcurrentHashMap <>();
3535
3636 public static class AnnotatedType {
3737
@@ -79,6 +79,7 @@ public boolean isParameterizedType() {
7979 return parameterizedType != null ;
8080 }
8181
82+ @ SuppressWarnings ("unchecked" )
8283 public <T > T getAnnotation (Class <T > clazz ) {
8384 if (this .annotations == null ) {
8485 return null ;
You can’t perform that action at this time.
0 commit comments