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