@Override
    public E doDeserialize( JsonReader reader, JsonDeserializationContext ctx, JsonDeserializerParameters params ) {
        try {
            return Enum.valueOf( enumClass, reader.nextString() );
        } catch ( IllegalArgumentException ex ) {
            if ( ctx.isReadUnknownEnumValuesAsNull() ) {
                return null;
            }
            throw ex;
        }
    }
@ Override public E doDeserialize ( JsonReader reader , JsonDeserializationContext ctx , JsonDeserializerParameters params ) { try { return Enum . valueOf ( enumClass , reader . nextString ( ) ) ; } catch ( IllegalArgumentException ex ) { if ( ctx . isReadUnknownEnumValuesAsNull ( ) ) { return null ; } throw ex ; } }
{@inheritDoc}