[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
master
Jeremy Dubreil 8 years ago committed by Facebook Github Bot
parent 950eca3cb3
commit 3093f2aa3c

@ -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:

Loading…
Cancel
Save