Buggy code:
public class DefaultFieldModel implements FieldModel { private ValueModel valueModel ; private FieldModelContext context ; private ValueBuffer buffer ; private BindingStatus bindingStatus ; private Object submittedValue ; private Exception invalidSubmittedValueCause ; public DefaultFieldModel ( ValueModel valueModel , FieldModelContext context ) { } public String getRenderValue ( ) { } public Object getValue ( ) { } public Class < ? > getValueType ( ) { } public boolean isEditable ( ) { } public boolean isEnabled ( ) { } public boolean isVisible ( ) { } @ SuppressWarnings ( "unchecked" ) public void applySubmittedValue ( Object submittedValue ) { } public Object getInvalidSubmittedValue ( ) { } public BindingStatus getBindingStatus ( ) { } public ValidationStatus getValidationStatus ( ) { } public Alert getStatusAlert ( ) { if ( ( bindingStatus ) == ( BindingStatus . INVALID_SUBMITTED_VALUE ) ) { return new DefaultFieldModel . AbstractAlert ( ) { public String getCode ( ) { return "typeMismatch" ; } public String getMessage ( ) { MessageBuilder builder = new MessageBuilder ( context . getMessageSource ( ) ) ; builder . code ( getCode ( ) ) ; if ( ( invalidSubmittedValueCause ) instanceof ParseException ) { ParseException e = ( ( ParseException ) ( invalidSubmittedValueCause ) ) ; builder . arg ( "label" , context . getLabel ( ) ) ; builder . arg ( "value" , submittedValue ) ; builder . arg ( "errorOffset" , e . getErrorOffset ( ) ) ; builder . defaultMessage ( new DefaultMessageFactory ( ) { public String createDefaultMessage ( ) { return ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>bind<seq2seq4repair_space>'" + ( context . getLabel ( ) ) ) + "';<seq2seq4repair_space>the<seq2seq4repair_space>submitted<seq2seq4repair_space>value<seq2seq4repair_space>" ) + ( StylerUtils . style ( submittedValue ) ) ) + "<seq2seq4repair_space>has<seq2seq4repair_space>an<seq2seq4repair_space>invalid<seq2seq4repair_space>format<seq2seq4repair_space>and<seq2seq4repair_space>could<seq2seq4repair_space>no<seq2seq4repair_space>be<seq2seq4repair_space>parsed" ; } } ) ; } else { final ConversionFailedException e = ( ( ConversionFailedException ) ( invalidSubmittedValueCause ) ) ; builder . arg ( "label" , new org . springframework . model . message . ResolvableArgument ( context . getLabel ( ) ) ) ; builder . arg ( "value" , submittedValue ) ; builder . defaultMessage ( new DefaultMessageFactory ( ) { public String createDefaultMessage ( ) { return ( ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>bind<seq2seq4repair_space>'" + ( context . getLabel ( ) ) ) + "';<seq2seq4repair_space>the<seq2seq4repair_space>submitted<seq2seq4repair_space>value<seq2seq4repair_space>" ) + ( StylerUtils . style ( submittedValue ) ) ) + "<seq2seq4repair_space>has<seq2seq4repair_space>could<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>converted<seq2seq4repair_space>to<seq2seq4repair_space>" ) + ( e . getTargetType ( ) . getName ( ) ) ; } } ) ; } return builder . build ( ) ; } public Severity getSeverity ( ) { return Severity . ERROR ; } } ; } else if ( ( bindingStatus ) == ( BindingStatus . COMMIT_FAILURE ) ) { return new DefaultFieldModel . AbstractAlert ( ) { public String getCode ( ) { return "internalError" ; } public String getMessage ( ) { return ( "Internal<seq2seq4repair_space>error<seq2seq4repair_space>occurred;<seq2seq4repair_space>message<seq2seq4repair_space>=<seq2seq4repair_space>[" + ( buffer . getFlushException ( ) . getMessage ( ) ) ) + "]" ; } public Severity getSeverity ( ) { return Severity . FATAL ; } } ; } else if ( ( bindingStatus ) == ( BindingStatus . COMMITTED ) ) { return new DefaultFieldModel . AbstractAlert ( ) { public String getCode ( ) { return "bindSuccess" ; } public String getMessage ( ) { MessageBuilder builder = new MessageBuilder ( context . getMessageSource ( ) ) ; <START_BUG> builder . code ( "bindSuccess" ) ; <END_BUG> builder . arg ( "label" , context . getLabel ( ) ) ; builder . arg ( "value" , submittedValue ) ; builder . defaultMessage ( new DefaultMessageFactory ( ) { public String createDefaultMessage ( ) { return ( ( ( "Successfully<seq2seq4repair_space>bound<seq2seq4repair_space>submitted<seq2seq4repair_space>value<seq2seq4repair_space>" + ( StylerUtils . style ( submittedValue ) ) ) + "<seq2seq4repair_space>to<seq2seq4repair_space>field<seq2seq4repair_space>'" ) + ( context . getLabel ( ) ) ) + "'" ; } } ) ; return "Binding<seq2seq4repair_space>successful" ; } public Severity getSeverity ( ) { return Severity . INFO ; } } ; } else { return null ; } } public void validate ( ) { } public void commit ( ) { } public void revert ( ) { } public FieldModel getNested ( String fieldName ) { } public boolean isList ( ) { } public FieldModel getListElement ( int index ) { } public boolean isMap ( ) { } public FieldModel getMapValue ( Object key ) { } @ SuppressWarnings ( "unchecked" ) public String formatValue ( Object value ) { } @ SuppressWarnings ( "unchecked" ) private String format ( Object value , Formatter formatter ) { } private Locale getLocale ( ) { } @ SuppressWarnings ( "unchecked" ) private Class getFormattedObjectType ( Class formatterClass ) { } @ SuppressWarnings ( "unchecked" ) private Object coerseToValueType ( Object parsed ) { } private void assertEditable ( ) { } private void assertEnabled ( ) { } abstract static class AbstractAlert implements Alert { public String toString ( ) { } } }

Fix:
builder . code ( getCode ( ) ) ;