Buggy code:
public class DOMWriter { private static final String DEFAULT_PARSER_NAME = "dom.wrappers.DOMParser" ; private static boolean setValidation = false ; private static boolean setNameSpaces = true ; private static boolean setSchemaSupport = true ; private static boolean setDeferredDOM = true ; private static String PRINTWRITER_ENCODING = "UTF8" ; private static String [ ] MIME2JAVA_ENCODINGS = new String [ ] { "Default" , "UTF-8" , "US-ASCII" , "ISO-8859-1" , "ISO-8859-2" , "ISO-8859-3" , "ISO-8859-4" , "ISO-8859-5" , "ISO-8859-6" , "ISO-8859-7" , "ISO-8859-8" , "ISO-8859-9" , "ISO-2022-JP" , "SHIFT_JIS" , "EUC-JP" , "GB2312" , "BIG5" , "EUC-KR" , "ISO-2022-KR" , "KOI8-R" , "EBCDIC-CP-US" , "EBCDIC-CP-CA" , "EBCDIC-CP-NL" , "EBCDIC-CP-DK" , "EBCDIC-CP-NO" , "EBCDIC-CP-FI" , "EBCDIC-CP-SE" , "EBCDIC-CP-IT" , "EBCDIC-CP-ES" , "EBCDIC-CP-GB" , "EBCDIC-CP-FR" , "EBCDIC-CP-AR1" , "EBCDIC-CP-HE" , "EBCDIC-CP-CH" , "EBCDIC-CP-ROECE" , "EBCDIC-CP-YU" , "EBCDIC-CP-IS" , "EBCDIC-CP-AR2" , "UTF-16" } ; protected PrintWriter out ; protected boolean canonical ; public DOMWriter ( String encoding , boolean canonical ) throws UnsupportedEncodingException { } public DOMWriter ( boolean canonical ) throws UnsupportedEncodingException { } public static String getWriterEncoding ( ) { } public static void setWriterEncoding ( String encoding ) { } public static boolean isValidJavaEncoding ( String encoding ) { } public static void print ( String parserWrapperName , String uri , boolean canonical ) { } public void print ( Node node ) { } protected Attr [ ] sortAttributes ( NamedNodeMap attrs ) { } public static void main ( String [ ] argv ) { Arguments argopt = new Arguments ( ) ; <START_BUG> argopt . setUsage ( new String [ ] { "usage:<seq2seq4repair_space>java<seq2seq4repair_space>dom.DOMWriter<seq2seq4repair_space>(options)<seq2seq4repair_space>uri<seq2seq4repair_space>..." , "" , "options:" , "<seq2seq4repair_space>-n<seq2seq4repair_space>|<seq2seq4repair_space>-N<seq2seq4repair_space>Turn<seq2seq4repair_space>on//off<seq2seq4repair_space>namespace<seq2seq4repair_space>[default=on]" , "<seq2seq4repair_space>-v<seq2seq4repair_space>|<seq2seq4repair_space>-V<seq2seq4repair_space>Turn<seq2seq4repair_space>on//off<seq2seq4repair_space>validation<seq2seq4repair_space>[default=on]" , "<seq2seq4repair_space>-s<seq2seq4repair_space>|<seq2seq4repair_space>-S<seq2seq4repair_space>Turn<seq2seq4repair_space>on//off<seq2seq4repair_space>Schema<seq2seq4repair_space>support<seq2seq4repair_space>[default=on]" , "<seq2seq4repair_space>-d<seq2seq4repair_space>|<seq2seq4repair_space>-D<seq2seq4repair_space>Turn<seq2seq4repair_space>on//off<seq2seq4repair_space>deferred<seq2seq4repair_space>DOM<seq2seq4repair_space>[default=on]" , "<seq2seq4repair_space>-c<seq2seq4repair_space>Canonical<seq2seq4repair_space>XML<seq2seq4repair_space>output." , "<seq2seq4repair_space>-h<seq2seq4repair_space>This<seq2seq4repair_space>help<seq2seq4repair_space>screen." , "<seq2seq4repair_space>-e<seq2seq4repair_space>Output<seq2seq4repair_space>Java<seq2seq4repair_space>Encoding." , "<seq2seq4repair_space>Default<seq2seq4repair_space>encoding:<seq2seq4repair_space>UTF-8" } ) ; <END_BUG> if ( ( argv . length ) == 0 ) { argopt . printUsage ( ) ; System . exit ( 1 ) ; } String parserName = DOMWriter . DEFAULT_PARSER_NAME ; boolean canonical = false ; String encoding = "UTF8" ; argopt . parseArgumentTokens ( argv , new char [ ] { 'p' , 'e' } ) ; int c ; String arg = null ; while ( ( arg = argopt . getlistFiles ( ) ) != null ) { outer : while ( ( c = argopt . getArguments ( ) ) != ( - 1 ) ) { switch ( c ) { case 'c' : canonical = true ; break ; case 'e' : encoding = argopt . getStringParameter ( ) ; if ( ( encoding != null ) && ( DOMWriter . isValidJavaEncoding ( encoding ) ) ) DOMWriter . setWriterEncoding ( encoding ) ; else { DOMWriter . printValidJavaEncoding ( ) ; System . exit ( 1 ) ; } break ; case 'v' : DOMWriter . setValidation = true ; break ; case 'V' : DOMWriter . setValidation = false ; break ; case 'N' : DOMWriter . setNameSpaces = false ; break ; case 'n' : DOMWriter . setNameSpaces = true ; break ; case 'p' : parserName = argopt . getStringParameter ( ) ; break ; case 'd' : DOMWriter . setDeferredDOM = true ; break ; case 'D' : DOMWriter . setDeferredDOM = false ; break ; case 's' : DOMWriter . setSchemaSupport = true ; break ; case 'S' : DOMWriter . setSchemaSupport = false ; break ; case '?' : case 'h' : case '-' : argopt . printUsage ( ) ; System . exit ( 1 ) ; break ; case - 1 : break outer ; default : break ; } } System . err . println ( ( arg + ':' ) ) ; DOMWriter . print ( parserName , arg , canonical ) ; System . err . println ( ) ; } } protected String normalize ( String s ) { } private static void printValidJavaEncoding ( ) { } }

Fix:
argopt . setUsage ( new String [ ] { "usage:<seq2seq4repair_space>java<seq2seq4repair_space>dom.DOMWriter<seq2seq4repair_space>(options)<seq2seq4repair_space>uri<seq2seq4repair_space>..." , "" , "options:" , "<seq2seq4repair_space>-n<seq2seq4repair_space>|<seq2seq4repair_space>-N<seq2seq4repair_space>Turn<seq2seq4repair_space>on//off<seq2seq4repair_space>namespace<seq2seq4repair_space>[default=on]" , "<seq2seq4repair_space>-v<seq2seq4repair_space>|<seq2seq4repair_space>-V<seq2seq4repair_space>Turn<seq2seq4repair_space>on//off<seq2seq4repair_space>validation<seq2seq4repair_space>[default=off]" , "<seq2seq4repair_space>-s<seq2seq4repair_space>|<seq2seq4repair_space>-S<seq2seq4repair_space>Turn<seq2seq4repair_space>on//off<seq2seq4repair_space>Schema<seq2seq4repair_space>support<seq2seq4repair_space>[default=on]" , "<seq2seq4repair_space>-d<seq2seq4repair_space>|<seq2seq4repair_space>-D<seq2seq4repair_space>Turn<seq2seq4repair_space>on//off<seq2seq4repair_space>deferred<seq2seq4repair_space>DOM<seq2seq4repair_space>[default=on]" , "<seq2seq4repair_space>-c<seq2seq4repair_space>Canonical<seq2seq4repair_space>XML<seq2seq4repair_space>output." , "<seq2seq4repair_space>-h<seq2seq4repair_space>This<seq2seq4repair_space>help<seq2seq4repair_space>screen." , "<seq2seq4repair_space>-e<seq2seq4repair_space>Output<seq2seq4repair_space>Java<seq2seq4repair_space>Encoding." , "<seq2seq4repair_space>Default<seq2seq4repair_space>encoding:<seq2seq4repair_space>UTF-8" } ) ;