Skip to content

Commit

Permalink
fix: EvidenceExtractorAst is a one time use object
Browse files Browse the repository at this point in the history
  • Loading branch information
rmbarnett-rice committed Aug 10, 2017
1 parent abd4c5c commit 24a905c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ static ApiSynthesisStrategy fromConfig()
String combinedClasspath = Configuration.EvidenceClasspath + File.pathSeparator +
Configuration.AndroidJarPath.getAbsolutePath();

EvidenceExtractor evidenceExtractor = new EvidenceExtractorAst(combinedClasspath);
EvidenceExtractor evidenceExtractor =
source -> new EvidenceExtractorAst(combinedClasspath).extract(source);

Synthesizer synthesizer = new SynthesizerDefault(combinedClasspath);

return new ApiSynthesisStrategyRemoteTensorFlowAsts(evidenceExtractor, synthesizer, "localhost", 8084,
Expand Down

0 comments on commit 24a905c

Please sign in to comment.