Buggy code:
public void callEndCDATA ( ) throws Exception { } public void callCharacters ( int ch ) throws Exception { } public void callProcessingInstruction ( int target , int data ) throws Exception { } public void callComment ( int comment ) throws Exception { } public void startNamespaceDeclScope ( int prefix , int uri ) throws Exception { } public void endNamespaceDeclScope ( int prefix ) throws Exception { } public void setRootElementType ( QName rootElement ) { } private boolean getElementDeclIsExternal ( int elementIndex ) { } public int getContentSpecType ( int elementIndex ) { } public int getContentSpecHandle ( int elementIndex ) { } private void reportSchemaError ( int code , Object [ ] args ) throws Exception { } protected void reportRecoverableXMLError ( int majorCode , int minorCode ) throws Exception { } protected void reportRecoverableXMLError ( int majorCode , int minorCode , int stringIndex1 ) throws Exception { } protected void reportRecoverableXMLError ( int majorCode , int minorCode , String string1 ) throws Exception { } protected void reportRecoverableXMLError ( int majorCode , int minorCode , int stringIndex1 , int stringIndex2 ) throws Exception { } protected void reportRecoverableXMLError ( int majorCode , int minorCode , String string1 , String string2 ) throws Exception { } protected void reportRecoverableXMLError ( int majorCode , int minorCode , String string1 , String string2 , String string3 ) throws Exception { } protected int whatCanGoHere ( int elementIndex , boolean fullyValid , InsertableElementsInfo info ) throws Exception { } protected boolean getAttDefIsExternal ( QName element , QName attribute ) { } private boolean usingStandaloneReader ( ) { } private LocatorImpl getLocatorImpl ( LocatorImpl fillin ) { } private void poolReset ( ) { } private void resetCommon ( StringPool stringPool ) throws Exception { } private void init ( ) { } private void initDataTypeValidators ( ) { } private int addDefaultAttributes ( int elementIndex , XMLAttrList attrList , int attrIndex , boolean validationEnabled , boolean standalone ) throws Exception { } private int addDTDDefaultAttributes ( QName element , XMLAttrList attrList , int attrIndex , boolean validationEnabled , boolean standalone ) throws Exception { } private XMLContentModel getElementContentModel ( int elementIndex ) throws CMException { } private int getAttDef ( QName element , QName attribute ) { } private int getAttDefByElementIndex ( int elementIndex , QName attribute ) { } private void rootElementSpecified ( QName rootElement ) throws Exception { } private boolean switchGrammar ( int newGrammarNameSpaceIndex ) throws Exception { } private void bindNamespacesToElementAndAttributes ( QName element , XMLAttrList attrList ) throws Exception { } void parseSchemaLocation ( String schemaLocationStr , Hashtable locationUriPairs ) { } private void resolveSchemaGrammar ( String loc , String uri ) throws Exception { } private void resolveSchemaGrammar ( String uri ) throws Exception { } private String bindNotationURI ( String value ) throws Exception { } static class Resolver implements EntityResolver { private static final String [ ] SYSTEM = new String [ ] { "http:////www.w3.org//2001//XMLSchema.dtd" , "http:////www.w3.org//XMLSchema//datatypes.dtd" , "http:////www.w3.org//XMLSchema//versionInfo.ent" } ; private static final String [ ] PATH = new String [ ] { "structures.dtd" , "datatypes.dtd" , "versionInfo.ent" } ; private DefaultEntityHandler fEntityHandler ; public Resolver ( DefaultEntityHandler handler ) { } public InputSource resolveEntity ( String publicId , String systemId ) throws IOException , SAXException { } } static class ErrorHandler implements org . xml . sax . ErrorHandler { public void warning ( SAXParseException ex ) { } public void error ( SAXParseException ex ) { } public void fatalError ( SAXParseException ex ) { } private String getLocationString ( SAXParseException ex ) { } } private int attributeTypeName ( XMLAttributeDecl attrDecl ) { switch ( attrDecl . type ) { case XMLAttributeDecl . TYPE_ENTITY : { return attrDecl . list ? fENTITIESSymbol : fENTITYSymbol ; } case XMLAttributeDecl . TYPE_ENUMERATION : { String enumeration = fStringPool . stringListAsString ( attrDecl . enumeration ) ; return fStringPool . addSymbol ( enumeration ) ; } case XMLAttributeDecl . TYPE_ID : { return fIDSymbol ; } case XMLAttributeDecl . TYPE_IDREF : { return attrDecl . list ? fIDREFSSymbol : fIDREFSymbol ; } case XMLAttributeDecl . TYPE_NMTOKEN : { <START_BUG> return attrDecl . list ? fNMTOKENSSymbol : fNMTOKENSSymbol ; <END_BUG> } case XMLAttributeDecl . TYPE_NOTATION : { return fNOTATIONSymbol ; } } return fCDATASymbol ; } private void validateElementAndAttributes ( QName element , XMLAttrList attrList ) throws Exception { } private int validateDTDattribute ( QName element , int attValue , XMLAttributeDecl attributeDecl ) throws Exception { } private int normalizeListAttribute ( String value , int origIndex , String origValue ) { } private void charDataInContent ( ) { } private int checkContent ( int elementIndex , QName [ ] children , int childOffset , int childCount ) throws Exception { } private void printChildren ( ) { } private void printStack ( ) { } public interface AttributeValidator { public int normalize ( QName element , QName attribute , int attValue , int attType , int enumHandle ) throws Exception { } } boolean invalidStandaloneAttDef ( QName element , QName attribute ) { } void validateUsingDV ( DatatypeValidator dv , String content , boolean onlyVal3Types ) throws Exception , InvalidDatatypeValueException { } final class AttValidatorNOTATION implements XMLValidator . AttributeValidator { public int normalize ( QName element , QName attribute , int attValueHandle , int attType , int enumHandle ) throws Exception { } boolean invalidStandaloneAttDef ( QName element , QName attribute ) { } } final class AttValidatorENUMERATION implements XMLValidator . AttributeValidator { public int normalize ( QName element , QName attribute , int attValueHandle , int attType , int enumHandle ) throws Exception { } boolean invalidStandaloneAttDef ( QName element , QName attribute ) { } } protected static class XPathMatcherStack { protected XPathMatcher [ ] fMatchers = new XPathMatcher [ 4 ] ; protected int fMatchersCount ; protected IntStack fContextStack = new IntStack ( ) ; public XPathMatcherStack ( ) { } public void clear ( ) { } public int size ( ) { }

Fix:
return attrDecl . list ? fNMTOKENSSymbol : fNMTOKENSymbol ;