Buggy code:
public class TypeGeneratorTest extends Assert { public static final String rootPackageName = "us.kbase" ; public static void main ( String [ ] args ) throws Exception { } @ BeforeClass public static void prepareTestConfigParams ( ) throws Exception { } @ Test public void testSimpleTypesAndStructures ( ) throws Exception { } @ Test public void testIncludsAndMultiModules ( ) throws Exception { } @ Test public void testTuples ( ) throws Exception { } @ Test public void testObject ( ) throws Exception { } @ Test public void testSyslog ( ) throws Exception { } @ Test public void testAuth ( ) throws Exception { } @ Test public void testEmptyArgsAndReturns ( ) throws Exception { } @ Test public void testServerCodeStoring ( ) throws Exception { } @ Test public void testGwtTransform ( ) throws Exception { } @ Test public void testComments ( ) throws Exception { } private static void startTest ( int testNum ) throws Exception { } private static String getCallingMethod ( ) { } private static void startTest ( int testNum , boolean needClientServer ) throws Exception { } protected static void runPythonServerTest ( int testNum , boolean needClientServer , File workDir , String testPackage , File libDir , File binDir , JavaData parsingData , File serverOutDir ) throws IOException , Exception { } protected static int pyPort ( int testNum ) { } protected static void runJavaServerTest ( int testNum , boolean needClientServer , String testPackage , File libDir , File binDir , JavaData parsingData ) throws Exception { } protected static int javaPort ( int testNum ) { } protected static void runPerlServerTest ( int testNum , boolean needClientServer , File workDir , String testPackage , File libDir , File binDir , JavaData parsingData , File serverOutDir ) throws IOException , Exception { } protected static int perlPort ( int testNum ) { } protected static File preparePerlAndPyServerCode ( int testNum , File workDir ) throws IOException { } protected static JavaData prepareJavaCode ( int testNum , File workDir , String testPackage , File libDir , File binDir , Integer defaultUrlPort , boolean needJavaServerCorrection ) throws FileNotFoundException , IOException , Exception , MalformedURLException { } public static JavaData processSpec ( File workDir , String testPackage , File libDir , String testFileName , File srcDir , String gwtPackageName , URL defaultUrl ) throws Exception { } private static String getGwtPackageName ( int testNum ) { } private static String getKbBinDir ( ) { } private static File findPythonServerScript ( File dir ) { } private static void compileModulesIntoBin ( File workDir , File srcDir , String testPackage , JavaData parsingData , String classPath , File binDir ) throws IOException , MalformedURLException { } private static String prepareClassPath ( File libDir , List < URL > cpUrls ) throws Exception { } private static Server startupJavaServer ( JavaModule module , File libDir , File binDir , String testPackage , int port ) throws Exception { } private static Class < ? > createServerServletInstance ( JavaModule module , File libDir , File binDir , String testPackage ) throws ClassNotFoundException , Exception , MalformedURLException { } private static URLClassLoader prepareUrlClassLoader ( File libDir , File binDir ) throws Exception , MalformedURLException { } private static File prepareWorkDir ( int testNum ) throws IOException { } private static void runClientTest ( int testNum , String testPackage , JavaData parsingData , File libDir , File binDir , int portNum , boolean needClientServer ) throws Exception { } private static void extractSpecFiles ( int testNum , File workDir , String testFileName ) { } private static void perlServerCorrection ( File serverOutDir , JavaData parsingData ) throws IOException { } private static void javaServerCorrectionForTestCallback ( File srcDir , String packageParent , JavaData parsingData , String testClassName ) throws IOException { } private static void javaServerCorrection ( File srcDir , String packageParent , JavaData parsingData ) throws IOException { } private static void pythonServerCorrection ( File serverOutDir , JavaData parsingData ) throws IOException { } private static void runJavac ( File workDir , File srcDir , String classPath , File binDir , String ... sourceFilePaths ) throws IOException { <START_BUG> ProcessHelper . cmd ( "javac" , "-g:source,lines" , "-d" , binDir . getName ( ) , "-sourcepath" , srcDir . getName ( ) , "-cp" , classPath ) . add ( sourceFilePaths ) . exec ( workDir ) ; <END_BUG> } private static void runJavaDoc ( File workDir , File srcDir , String classPath , File docDir , String ... packages ) throws IOException { } private static String getClientClassName ( JavaModule module ) { } private static String getServerClassName ( JavaModule module ) { } private static void addLib ( File libFile , File libDir , StringBuilder classPath , List < URL > libUrls ) throws Exception { } }

Fix:
ProcessHelper . cmd ( "javac" , "-g:source,lines" , "-d" , binDir . getName ( ) , "-sourcepath" , srcDir . getName ( ) , "-cp" , classPath , "-Xlint:deprecation" ) . add ( sourceFilePaths ) . exec ( workDir ) ;