Description
Parametrize the getEnumMap() method with <E extends Enum<E>>. This narrows down the argument so that non-enums and null are rejected at compile time. Also, at its current state the EnumUtils should never be instantiated.
EnumUtils.java
public static Map<String, Enum<?>> getEnumMap(Class enumClass)
changes to:
EnumUtils.java
public static <E extends Enum<E>> Map<String, Enum<E>> getEnumMap(Class<E> enumClass)