Buggy code:
public class Counter extends DefaultHandler { protected static final String NAMESPACES_FEATURE_ID = "http:////xml.org//sax//features//namespaces" ; protected static final String NAMESPACE_PREFIXES_FEATURE_ID = "http:////xml.org//sax//features//namespace-prefixes" ; protected static final String VALIDATION_FEATURE_ID = "http:////xml.org//sax//features//validation" ; protected static final String SCHEMA_VALIDATION_FEATURE_ID = "http:////apache.org//xml//features//validation//schema" ; protected static final String SCHEMA_FULL_CHECKING_FEATURE_ID = "http:////apache.org//xml//features//validation//schema-full-checking" ; protected static final String DYNAMIC_VALIDATION_FEATURE_ID = "http:////apache.org//xml//features//validation//dynamic" ; protected static final String DEFAULT_PARSER_NAME = "org.apache.xerces.parsers.SAXParser" ; protected static final int DEFAULT_REPETITION = 1 ; protected static final boolean DEFAULT_NAMESPACES = true ; protected static final boolean DEFAULT_NAMESPACE_PREFIXES = false ; protected static final boolean DEFAULT_VALIDATION = false ; protected static final boolean DEFAULT_SCHEMA_VALIDATION = false ; protected static final boolean DEFAULT_SCHEMA_FULL_CHECKING = false ; protected static final boolean DEFAULT_DYNAMIC_VALIDATION = false ; protected static final boolean DEFAULT_MEMORY_USAGE = false ; protected static final boolean DEFAULT_TAGGINESS = false ; protected long fElements ; protected long fAttributes ; protected long fCharacters ; protected long fIgnorableWhitespace ; protected long fTagCharacters ; protected long fOtherCharacters ; public Counter ( ) { } public void printResults ( PrintWriter out , String uri , long time , long memory , boolean tagginess , int repetition ) { } public void startDocument ( ) throws SAXException { } public void startElement ( String uri , String local , String raw , Attributes attrs ) throws SAXException { } public void characters ( char [ ] ch , int start , int length ) throws SAXException { } public void ignorableWhitespace ( char [ ] ch , int start , int length ) throws SAXException { } public void processingInstruction ( String target , String data ) throws SAXException { } public void warning ( SAXParseException ex ) throws SAXException { } public void error ( SAXParseException ex ) throws SAXException { } public void fatalError ( SAXParseException ex ) throws SAXException { } protected void printError ( String type , SAXParseException ex ) { } public static void main ( String [ ] argv ) { } private static void printUsage ( ) { System . err . println ( "usage:<seq2seq4repair_space>java<seq2seq4repair_space>sax.Counter<seq2seq4repair_space>(options)<seq2seq4repair_space>uri<seq2seq4repair_space>..." ) ; System . err . println ( ) ; System . err . println ( "options:" ) ; System . err . println ( "<seq2seq4repair_space>-p<seq2seq4repair_space>name<seq2seq4repair_space>Select<seq2seq4repair_space>parser<seq2seq4repair_space>by<seq2seq4repair_space>name." ) ; System . err . println ( "<seq2seq4repair_space>-x<seq2seq4repair_space>number<seq2seq4repair_space>Select<seq2seq4repair_space>number<seq2seq4repair_space>of<seq2seq4repair_space>repetitions." ) ; System . err . println ( "<seq2seq4repair_space>-n<seq2seq4repair_space>|<seq2seq4repair_space>-N<seq2seq4repair_space>Turn<seq2seq4repair_space>on//off<seq2seq4repair_space>namespace<seq2seq4repair_space>processing." ) ; System . err . println ( "<seq2seq4repair_space>-np<seq2seq4repair_space>|<seq2seq4repair_space>-NP<seq2seq4repair_space>Turn<seq2seq4repair_space>on//off<seq2seq4repair_space>namespace<seq2seq4repair_space>prefixes." ) ; System . err . println ( "<seq2seq4repair_space>NOTE:<seq2seq4repair_space>Requires<seq2seq4repair_space>use<seq2seq4repair_space>of<seq2seq4repair_space>-n." ) ; System . err . println ( "<seq2seq4repair_space>-v<seq2seq4repair_space>|<seq2seq4repair_space>-V<seq2seq4repair_space>Turn<seq2seq4repair_space>on//off<seq2seq4repair_space>validation." ) ; System . err . println ( "<seq2seq4repair_space>-s<seq2seq4repair_space>|<seq2seq4repair_space>-S<seq2seq4repair_space>Turn<seq2seq4repair_space>on//off<seq2seq4repair_space>Schema<seq2seq4repair_space>validation<seq2seq4repair_space>support." ) ; System . err . println ( "<seq2seq4repair_space>NOTE:<seq2seq4repair_space>Not<seq2seq4repair_space>supported<seq2seq4repair_space>by<seq2seq4repair_space>all<seq2seq4repair_space>parsers." ) ; System . err . println ( "<seq2seq4repair_space>-f<seq2seq4repair_space>|<seq2seq4repair_space>-F<seq2seq4repair_space>Turn<seq2seq4repair_space>on//off<seq2seq4repair_space>Schema<seq2seq4repair_space>full<seq2seq4repair_space>checking." ) ; System . err . println ( "<seq2seq4repair_space>NOTE:<seq2seq4repair_space>Requires<seq2seq4repair_space>use<seq2seq4repair_space>of<seq2seq4repair_space>-s<seq2seq4repair_space>and<seq2seq4repair_space>not<seq2seq4repair_space>supported<seq2seq4repair_space>by<seq2seq4repair_space>all<seq2seq4repair_space>parsers." ) ; System . err . println ( "<seq2seq4repair_space>-dv<seq2seq4repair_space>|<seq2seq4repair_space>-DV<seq2seq4repair_space>Turn<seq2seq4repair_space>on//off<seq2seq4repair_space>dynamic<seq2seq4repair_space>validation." ) ; <START_BUG> System . err . println ( "<seq2seq4repair_space>NOTE:<seq2seq4repair_space>Requires<seq2seq4repair_space>use<seq2seq4repair_space>of<seq2seq4repair_space>-v<seq2seq4repair_space>and<seq2seq4repair_space>not<seq2seq4repair_space>supported<seq2seq4repair_space>by<seq2seq4repair_space>all<seq2seq4repair_space>parsers." ) ; <END_BUG> System . err . println ( "<seq2seq4repair_space>-m<seq2seq4repair_space>|<seq2seq4repair_space>-M<seq2seq4repair_space>Turn<seq2seq4repair_space>on//off<seq2seq4repair_space>memory<seq2seq4repair_space>usage<seq2seq4repair_space>report" ) ; System . err . println ( "<seq2seq4repair_space>-t<seq2seq4repair_space>|<seq2seq4repair_space>-T<seq2seq4repair_space>Turn<seq2seq4repair_space>on//off<seq2seq4repair_space>\"tagginess\"<seq2seq4repair_space>report." ) ; System . err . println ( "<seq2seq4repair_space>--rem<seq2seq4repair_space>text<seq2seq4repair_space>Output<seq2seq4repair_space>user<seq2seq4repair_space>defined<seq2seq4repair_space>comment<seq2seq4repair_space>before<seq2seq4repair_space>next<seq2seq4repair_space>parse." ) ; System . err . println ( "<seq2seq4repair_space>-h<seq2seq4repair_space>This<seq2seq4repair_space>help<seq2seq4repair_space>screen." ) ; System . err . println ( ) ; System . err . println ( "defaults:" ) ; System . err . println ( ( "<seq2seq4repair_space>Parser:<seq2seq4repair_space>" + ( Counter . DEFAULT_PARSER_NAME ) ) ) ; System . err . println ( ( "<seq2seq4repair_space>Repetition:<seq2seq4repair_space>" + ( Counter . DEFAULT_REPETITION ) ) ) ; System . err . print ( "<seq2seq4repair_space>Namespaces:<seq2seq4repair_space>" ) ; System . err . println ( ( Counter . DEFAULT_NAMESPACES ? "on" : "off" ) ) ; System . err . print ( "<seq2seq4repair_space>Prefixes:<seq2seq4repair_space>" ) ; System . err . println ( ( Counter . DEFAULT_NAMESPACE_PREFIXES ? "on" : "off" ) ) ; System . err . print ( "<seq2seq4repair_space>Validation:<seq2seq4repair_space>" ) ; System . err . println ( ( Counter . DEFAULT_VALIDATION ? "on" : "off" ) ) ; System . err . print ( "<seq2seq4repair_space>Schema:<seq2seq4repair_space>" ) ; System . err . println ( ( Counter . DEFAULT_SCHEMA_VALIDATION ? "on" : "off" ) ) ; System . err . print ( "<seq2seq4repair_space>Schema<seq2seq4repair_space>full<seq2seq4repair_space>checking:<seq2seq4repair_space>" ) ; System . err . println ( ( Counter . DEFAULT_SCHEMA_FULL_CHECKING ? "on" : "off" ) ) ; System . err . print ( "<seq2seq4repair_space>Dynamic:<seq2seq4repair_space>" ) ; System . err . println ( ( Counter . DEFAULT_DYNAMIC_VALIDATION ? "on" : "off" ) ) ; System . err . print ( "<seq2seq4repair_space>Memory:<seq2seq4repair_space>" ) ; System . err . println ( ( Counter . DEFAULT_MEMORY_USAGE ? "on" : "off" ) ) ; System . err . print ( "<seq2seq4repair_space>Tagginess:<seq2seq4repair_space>" ) ; System . err . println ( ( Counter . DEFAULT_TAGGINESS ? "on" : "off" ) ) ; System . err . println ( ) ; System . err . println ( "notes:" ) ; System . err . println ( "<seq2seq4repair_space>The<seq2seq4repair_space>speed<seq2seq4repair_space>and<seq2seq4repair_space>memory<seq2seq4repair_space>results<seq2seq4repair_space>from<seq2seq4repair_space>this<seq2seq4repair_space>program<seq2seq4repair_space>should<seq2seq4repair_space>NOT<seq2seq4repair_space>be<seq2seq4repair_space>used<seq2seq4repair_space>as<seq2seq4repair_space>the" ) ; System . err . println ( "<seq2seq4repair_space>basis<seq2seq4repair_space>of<seq2seq4repair_space>parser<seq2seq4repair_space>performance<seq2seq4repair_space>comparison!<seq2seq4repair_space>Real<seq2seq4repair_space>analytical<seq2seq4repair_space>methods<seq2seq4repair_space>should<seq2seq4repair_space>be" ) ; System . err . println ( "<seq2seq4repair_space>used.<seq2seq4repair_space>For<seq2seq4repair_space>better<seq2seq4repair_space>results,<seq2seq4repair_space>perform<seq2seq4repair_space>multiple<seq2seq4repair_space>document<seq2seq4repair_space>parses<seq2seq4repair_space>within<seq2seq4repair_space>the<seq2seq4repair_space>same" ) ; System . err . println ( "<seq2seq4repair_space>virtual<seq2seq4repair_space>machine<seq2seq4repair_space>to<seq2seq4repair_space>remove<seq2seq4repair_space>class<seq2seq4repair_space>loading<seq2seq4repair_space>from<seq2seq4repair_space>parse<seq2seq4repair_space>time<seq2seq4repair_space>and<seq2seq4repair_space>memory<seq2seq4repair_space>usage." ) ; System . err . println ( ) ; System . err . println ( "<seq2seq4repair_space>The<seq2seq4repair_space>\"tagginess\"<seq2seq4repair_space>measurement<seq2seq4repair_space>gives<seq2seq4repair_space>a<seq2seq4repair_space>rough<seq2seq4repair_space>estimate<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>percentage<seq2seq4repair_space>of" ) ; System . err . println ( "<seq2seq4repair_space>markup<seq2seq4repair_space>versus<seq2seq4repair_space>content<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>XML<seq2seq4repair_space>document.<seq2seq4repair_space>The<seq2seq4repair_space>percent<seq2seq4repair_space>tagginess<seq2seq4repair_space>of<seq2seq4repair_space>a<seq2seq4repair_space>" ) ; System . err . println ( "<seq2seq4repair_space>document<seq2seq4repair_space>is<seq2seq4repair_space>equal<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>minimum<seq2seq4repair_space>amount<seq2seq4repair_space>of<seq2seq4repair_space>tag<seq2seq4repair_space>characters<seq2seq4repair_space>required<seq2seq4repair_space>for<seq2seq4repair_space>" ) ; System . err . println ( "<seq2seq4repair_space>elements,<seq2seq4repair_space>attributes,<seq2seq4repair_space>and<seq2seq4repair_space>processing<seq2seq4repair_space>instructions<seq2seq4repair_space>divided<seq2seq4repair_space>by<seq2seq4repair_space>the<seq2seq4repair_space>total" ) ; System . err . println ( "<seq2seq4repair_space>amount<seq2seq4repair_space>of<seq2seq4repair_space>characters<seq2seq4repair_space>(characters,<seq2seq4repair_space>ignorable<seq2seq4repair_space>whitespace,<seq2seq4repair_space>and<seq2seq4repair_space>tag<seq2seq4repair_space>characters)" ) ; System . err . println ( "<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>document." ) ; System . err . println ( ) ; System . err . println ( "<seq2seq4repair_space>Not<seq2seq4repair_space>all<seq2seq4repair_space>features<seq2seq4repair_space>are<seq2seq4repair_space>supported<seq2seq4repair_space>by<seq2seq4repair_space>different<seq2seq4repair_space>parsers." ) ; } }

Fix:
System . err . println ( "<seq2seq4repair_space>NOTE:<seq2seq4repair_space>Not<seq2seq4repair_space>supported<seq2seq4repair_space>by<seq2seq4repair_space>all<seq2seq4repair_space>parsers." ) ;