Buggy code:
public void backingMember ( Member member ) { } public Member getBackingMember ( ) { } public MetaDataRepository getRepository ( ) { } public ClassMetaData getDefiningMetaData ( ) { } public Class getDeclaringType ( ) { } public void setDeclaringType ( Class < ? > cls ) { } public ClassMetaData getDeclaringMetaData ( ) { } public String getName ( ) { } public String getFullName ( ) { } public String getFullName ( boolean embedOwner ) { } public String getRealName ( ) { } public ValueMetaData getValue ( ) { } public ValueMetaData getKey ( ) { } public ValueMetaData getElement ( ) { } public boolean isMapped ( ) { } public Class < ? > getProxyType ( ) { } public void setProxyType ( Class < ? > type ) { } public Object getInitializer ( ) { } public void setInitializer ( Object initializer ) { } public boolean isTransient ( ) { } public void setTransient ( boolean trans ) { } public int getIndex ( ) { } public void setIndex ( int index ) { } public int getDeclaredIndex ( ) { } public void setDeclaredIndex ( int index ) { } public int getListingIndex ( ) { } public void setListingIndex ( int index ) { } public int getPrimaryKeyIndex ( ) { } public void setPrimaryKeyIndex ( int index ) { } public int getManagement ( ) { } public void setManagement ( int manage ) { } public boolean isPrimaryKey ( ) { } public void setPrimaryKey ( boolean primKey ) { } public int getObjectIdFieldTypeCode ( ) { } public Class < ? > getObjectIdFieldType ( ) { } public boolean isVersion ( ) { } public void setVersion ( boolean version ) { } public boolean isInDefaultFetchGroup ( ) { } private boolean isEnum ( ) { } private boolean isSerializable ( ) { } private boolean isLobArray ( ) { } public void setInDefaultFetchGroup ( boolean dfg ) { } public boolean isDefaultFetchGroupExplicit ( ) { } public void setDefaultFetchGroupExplicit ( boolean explicit ) { } public String [ ] getCustomFetchGroups ( ) { } public String getLoadFetchGroup ( ) { } public void setLoadFetchGroup ( String lfg ) { } public boolean isInFetchGroup ( String fg ) { } public void setInFetchGroup ( String fg , boolean in ) { } public int getNullValue ( ) { } public void setNullValue ( int nullValue ) { } public boolean isExplicit ( ) { } public void setExplicit ( boolean explicit ) { } public String getMappedBy ( ) { } public void setMappedBy ( String mapped ) { } public FieldMetaData getMappedByMetaData ( ) { } public FieldMetaData getMappedByField ( ClassMetaData meta , String mappedBy ) { } public String getInverse ( ) { } public void setInverse ( String inverse ) { } public FieldMetaData [ ] getInverseMetaDatas ( ) { } public int getValueStrategy ( ) { } public void setValueStrategy ( int strategy ) { } public String getValueSequenceName ( ) { } public void setValueSequenceName ( String seqName ) { } public SequenceMetaData getValueSequenceMetaData ( ) { } public int getUpdateStrategy ( ) { } public void setUpdateStrategy ( int strategy ) { } public boolean isLRS ( ) { } public void setLRS ( boolean lrs ) { } public boolean isStream ( ) { } public void setStream ( boolean stream ) { } public boolean usesIntermediate ( ) { } public void setUsesIntermediate ( boolean intermediate ) { } public Boolean usesImplData ( ) { } public void setUsesImplData ( Boolean implData ) { } public Order [ ] getOrders ( ) { } public void setOrders ( Order [ ] orders ) { } public String getOrderDeclaration ( ) { if ( ( ( _orderDec ) == null ) && ( ( _orders ) != null ) ) { <START_BUG> StringBuffer buf = new StringBuffer ( ) ; <END_BUG> for ( int i = 0 ; i < ( _orders . length ) ; i ++ ) { if ( i > 0 ) buf . append ( ",<seq2seq4repair_space>" ) ; buf . append ( _orders [ i ] . getName ( ) ) . append ( "<seq2seq4repair_space>" ) ; buf . append ( ( _orders [ i ] . isAscending ( ) ? "asc" : "desc" ) ) ; } _orderDec = buf . toString ( ) ; } return _orderDec ; } public void setOrderDeclaration ( String dec ) { } public Object order ( Object val ) { } public boolean isExternalized ( ) { } public Object getExternalValue ( Object val , StoreContext ctx ) { } public Object getFieldValue ( Object val , StoreContext ctx ) { } public String getExternalizer ( ) { } public void setExternalizer ( String externalizer ) { } public String getFactory ( ) { } public void setFactory ( String factory ) { } public String getExternalValues ( ) { } public void setExternalValues ( String values ) { } public Map getExternalValueMap ( ) { } public Map getFieldValueMap ( ) { } private void parseExternalValues ( ) { } private Object transform ( String val , int typeCode ) { } public Method getExternalizerMethod ( ) { } public Member getFactoryMethod ( ) { } private Method findMethod ( String method ) { } private static boolean isStoreContextParameter ( Class < ? > type ) { } public boolean equals ( Object other ) { } public int hashCode ( ) { } public int compareTo ( Object other ) { } public String toString ( ) { } public int getResolve ( ) { } public void setResolve ( int mode ) { } public void setResolve ( int mode , boolean on ) { } public boolean resolve ( int mode ) { } private void validateLRS ( ) { } private void validateSupportedType ( ) { }

Fix:
StringBuilder buf = new StringBuilder ( ) ;