@ Override public Object convert ( String value , Class type ) { if ( isNullOrEmpty ( value ) ) { return null ; } if ( Character . isDigit ( value . charAt ( 0 ) ) ) { return resolveByOrdinal ( value , type ) ; } else { return resolveByName ( value , type ) ; } }
Enums are always final so I can suppress this warning safely