From 3093f2aa3c4d5281c3504116302953f3b73bd611 Mon Sep 17 00:00:00 2001 From: Jeremy Dubreil Date: Thu, 24 Nov 2016 22:26:59 -0800 Subject: [PATCH] [infer][java] remove the dead code manipulating the bootclasspath Summary: The default `android.jar` used to compile Android code is just a list of empty method stubs that is used for the type checking. In order to improve the type information, we used to redirect the bootclasspath to another `android.jar` that was containing the method bodies and all the fields including the private ones. Since we no longer need the types in the models and the types in the libraries to match, this is now dead code. Reviewed By: jberdine Differential Revision: D4230510 fbshipit-source-id: 93417f3 --- infer/lib/python/inferlib/jwlib.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/infer/lib/python/inferlib/jwlib.py b/infer/lib/python/inferlib/jwlib.py index 127a8b3e3..e00083518 100644 --- a/infer/lib/python/inferlib/jwlib.py +++ b/infer/lib/python/inferlib/jwlib.py @@ -26,10 +26,8 @@ parser = argparse.ArgumentParser() current_directory = utils.decode(os.getcwd()) parser.add_argument('-version', action='store_true') -parser.add_argument('-deprecation', action='store_true') parser.add_argument('-cp', '-classpath', type=utils.decode, dest='classpath', default=os.getcwd()) -parser.add_argument('-bootclasspath', type=utils.decode) parser.add_argument('-d', dest='classes_out', default=current_directory) parser.add_argument('-processorpath', type=utils.decode, dest='processorpath') parser.add_argument('-processor', type=utils.decode, dest='processor') @@ -105,9 +103,6 @@ class CompilerCall(object): else: javac_args = ['-verbose', '-g'] - if self.args.bootclasspath is not None: - javac_args += ['-bootclasspath', self.args.bootclasspath] - if not os.path.isfile(config.ANNOT_PROCESSOR_JAR): raise AnnotationProcessorNotFound(config.ANNOT_PROCESSOR_JAR) if self.args.classes_out is not None: