Buggy code:
public class XSComplexTypeDecl implements XSComplexTypeDefinition , XSTypeDecl { String fName = null ; String fTargetNamespace = null ; XSTypeDecl fBaseType = null ; short fDerivedBy = XSConstants . DERIVATION_RESTRICTION ; short fFinal = XSConstants . DERIVATION_NONE ; short fBlock = XSConstants . DERIVATION_NONE ; short fMiscFlags = 0 ; XSAttributeGroupDecl fAttrGrp = null ; short fContentType = CONTENTTYPE_EMPTY ; XSSimpleType fXSSimpleType = null ; XSParticleDecl fParticle = null ; XSCMValidator fCMValidator = null ; public XSComplexTypeDecl ( ) { } public void setValues ( String name , String targetNamespace , XSTypeDecl baseType , short derivedBy , short schemaFinal , short block , short contentType , boolean isAbstract , XSAttributeGroupDecl attrGrp , XSSimpleType simpleType , XSParticleDecl particle ) { } public void setName ( String name ) { } public short getTypeCategory ( ) { } public String getTypeName ( ) { } public short getFinalSet ( ) { } public String getTargetNamespace ( ) { } private static final short CT_IS_ABSTRACT = 1 ; private static final short CT_HAS_TYPE_ID = 2 ; private static final short CT_IS_ANONYMOUS = 4 ; public boolean containsTypeID ( ) { } public void setIsAbstractType ( ) { } public void setContainsTypeID ( ) { } public void setIsAnonymous ( ) { } public synchronized XSCMValidator getContentModel ( CMBuilder cmBuilder ) { } public XSAttributeGroupDecl getAttrGrp ( ) { } public String toString ( ) { } void appendTypeInfo ( StringBuffer str ) { <START_BUG> String [ ] contentType = new String [ ] { "EMPTY" , "SIMPLE" , "MIXED" , "ELEMENT" } ; <END_BUG> String [ ] derivedBy = new String [ ] { "EMPTY" , "EXTENSION" , "RESTRICTION" } ; str . append ( ( ( ( ( "Complex<seq2seq4repair_space>type<seq2seq4repair_space>name='" + ( fTargetNamespace ) ) + "," ) + ( getTypeName ( ) ) ) + "',<seq2seq4repair_space>" ) ) ; if ( ( fBaseType ) != null ) str . append ( ( ( "<seq2seq4repair_space>base<seq2seq4repair_space>type<seq2seq4repair_space>name='" + ( fBaseType . getName ( ) ) ) + "',<seq2seq4repair_space>" ) ) ; str . append ( ( ( "<seq2seq4repair_space>content<seq2seq4repair_space>type='" + ( contentType [ fContentType ] ) ) + "',<seq2seq4repair_space>" ) ) ; str . append ( ( ( "<seq2seq4repair_space>isAbstract='" + ( getIsAbstract ( ) ) ) + "',<seq2seq4repair_space>" ) ) ; str . append ( ( ( "<seq2seq4repair_space>hasTypeId='" + ( containsTypeID ( ) ) ) + "',<seq2seq4repair_space>" ) ) ; str . append ( ( ( "<seq2seq4repair_space>final='" + ( fFinal ) ) + "',<seq2seq4repair_space>" ) ) ; str . append ( ( ( "<seq2seq4repair_space>block='" + ( fBlock ) ) + "',<seq2seq4repair_space>" ) ) ; if ( ( fParticle ) != null ) str . append ( ( ( "<seq2seq4repair_space>particle='" + ( fParticle . toString ( ) ) ) + "',<seq2seq4repair_space>" ) ) ; str . append ( ( ( "<seq2seq4repair_space>derivedBy='" + ( derivedBy [ fDerivedBy ] ) ) + "'.<seq2seq4repair_space>" ) ) ; } public boolean derivedFrom ( XSTypeDefinition ancestor ) { } public boolean derivedFrom ( String ancestorNS , String ancestorName ) { } public void reset ( ) { } public short getType ( ) { } public String getName ( ) { } public boolean getIsAnonymous ( ) { } public String getNamespace ( ) { } public XSTypeDefinition getBaseType ( ) { } public short getDerivationMethod ( ) { } public boolean getIsFinal ( short derivation ) { } public short getFinal ( ) { } public boolean getIsAbstract ( ) { } public XSObjectList getAttributeUses ( ) { } public XSWildcard getAttributeWildcard ( ) { } public short getContentType ( ) { } public XSSimpleTypeDefinition getSimpleType ( ) { } public XSParticle getParticle ( ) { } public boolean getIsProhibitedSubstitution ( short prohibited ) { } public short getProhibitedSubstitutions ( ) { } public XSObjectList getAnnotations ( ) { } }

Fix:
String [ ] contentType = new String [ ] { "EMPTY" , "SIMPLE" , "ELEMENT" , "MIXED" } ;