protected static Class getEnumClass(Class cls) { String className = cls.getName(); int index = className.lastIndexOf('$'); if (index > -1) {  String inner = className.substring(index + 1); if (inner.length() > 0 && inner.charAt(0) >= '0' && inner.charAt(0) < '9') { return cls.getSuperclass(); } } return cls;
public final Class getEnumClass() { return iEnumClass;
    protected static Class getEnumClass(Class cls) {        String className = cls.getName();        int index = className.lastIndexOf('$');        if (index > -1) {            // is it an anonymous inner class?            String inner = className.substring(index + 1);            if (inner.length() > 0 &&                inner.charAt(0) >= '0' &&                inner.charAt(0) < '9') {                return cls.getSuperclass();            }        }        return cls;    }