private TYPE_1 METHOD_1 ( java.lang.String name ) { for ( TYPE_1 VAR_1 : VAR_2 . values ( ) ) { if ( VAR_1 . getName ( ) . equals ( name ) ) { return VAR_1 ; } throw new TYPE_2 ( STRING_1 ) ; } }
private TYPE_1 METHOD_1 ( java.lang.String name ) { for ( TYPE_1 VAR_1 : VAR_2 . values ( ) ) { if ( VAR_1 . getName ( ) . equals ( name ) ) { return VAR_1 ; } } return new TYPE_1 ( ) ; }