Format tweak.

This commit is contained in:
Gary Gregory 2020-07-16 19:23:10 -04:00
parent bc4b945bde
commit c56be9c3dd
1 changed files with 4 additions and 0 deletions

View File

@ -82,6 +82,7 @@ public class ClassUtils {
* Maps names of primitives to their corresponding primitive {@code Class}es. * Maps names of primitives to their corresponding primitive {@code Class}es.
*/ */
private static final Map<String, Class<?>> namePrimitiveMap = new HashMap<>(); private static final Map<String, Class<?>> namePrimitiveMap = new HashMap<>();
static { static {
namePrimitiveMap.put("boolean", Boolean.TYPE); namePrimitiveMap.put("boolean", Boolean.TYPE);
namePrimitiveMap.put("byte", Byte.TYPE); namePrimitiveMap.put("byte", Byte.TYPE);
@ -98,6 +99,7 @@ public class ClassUtils {
* Maps primitive {@code Class}es to their corresponding wrapper {@code Class}. * Maps primitive {@code Class}es to their corresponding wrapper {@code Class}.
*/ */
private static final Map<Class<?>, Class<?>> primitiveWrapperMap = new HashMap<>(); private static final Map<Class<?>, Class<?>> primitiveWrapperMap = new HashMap<>();
static { static {
primitiveWrapperMap.put(Boolean.TYPE, Boolean.class); primitiveWrapperMap.put(Boolean.TYPE, Boolean.class);
primitiveWrapperMap.put(Byte.TYPE, Byte.class); primitiveWrapperMap.put(Byte.TYPE, Byte.class);
@ -114,6 +116,7 @@ public class ClassUtils {
* Maps wrapper {@code Class}es to their corresponding primitive types. * Maps wrapper {@code Class}es to their corresponding primitive types.
*/ */
private static final Map<Class<?>, Class<?>> wrapperPrimitiveMap = new HashMap<>(); private static final Map<Class<?>, Class<?>> wrapperPrimitiveMap = new HashMap<>();
static { static {
for (final Map.Entry<Class<?>, Class<?>> entry : primitiveWrapperMap.entrySet()) { for (final Map.Entry<Class<?>, Class<?>> entry : primitiveWrapperMap.entrySet()) {
final Class<?> primitiveClass = entry.getKey(); final Class<?> primitiveClass = entry.getKey();
@ -133,6 +136,7 @@ public class ClassUtils {
* Maps an abbreviation used in array class names to corresponding primitive class name. * Maps an abbreviation used in array class names to corresponding primitive class name.
*/ */
private static final Map<String, String> reverseAbbreviationMap; private static final Map<String, String> reverseAbbreviationMap;
// Feed abbreviation maps // Feed abbreviation maps
static { static {
final Map<String, String> m = new HashMap<>(); final Map<String, String> m = new HashMap<>();