public static boolean isEnumType(Class<?> srcFieldClass) {
        if (srcFieldClass.isAnonymousClass()) {
            //If srcFieldClass is anonymous class, replace srcFieldClass with its enclosing class.
            //This is used to ensure Dozer can get correct Enum type.
            srcFieldClass = srcFieldClass.getEnclosingClass();
        }
        return srcFieldClass.isEnum();
    }
Used to test if {@code srcFieldClass} is enum.

@param srcFieldClass the source field to be tested.
@return {@code true} if and only if current running JRE is 1.5 or above, and
{@code srcFieldClass} is enum; otherwise return {@code false}.
core/src/main/java/com/github/dozermapper/core/util/MappingUtils.java