Use simple class names instead of magix strings
This commit is contained in:
parent
9e9d293755
commit
0d1c8b3e80
|
@ -92,7 +92,7 @@ public class ClassUtils {
|
|||
private static final Map<String, Class<?>> namePrimitiveMap = new HashMap<>();
|
||||
|
||||
static {
|
||||
namePrimitiveMap.put("boolean", Boolean.TYPE);
|
||||
namePrimitiveMap.put(Boolean.TYPE.getSimpleName(), Boolean.TYPE);
|
||||
namePrimitiveMap.put("byte", Byte.TYPE);
|
||||
namePrimitiveMap.put("char", Character.TYPE);
|
||||
namePrimitiveMap.put("short", Short.TYPE);
|
||||
|
|
Loading…
Reference in New Issue