Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
SmartDexingStep: cast callable
Browse files Browse the repository at this point in the history
Summary:
For Java 9 compatibility.

Extracted from #1047 .

Test Plan: Imported from GitHub, without a Test Plan: line.

Reviewed By: marcinkosiba, Coneko

fbshipit-source-id: 4edbf4f
  • Loading branch information
davido authored and facebook-github-bot committed Mar 9, 2017
1 parent 57534be commit 1e28fd6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/com/facebook/buck/android/SmartDexingStep.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,9 @@ private void runDxCommands(ExecutionContext context, Multimap<Path, Path> output
// itself to be CPU (and not I/O) bound making it a good candidate for parallelization.
List<Step> dxSteps = generateDxCommands(filesystem, outputToInputs);

List<Callable<Void>> callables = Lists.transform(dxSteps,
step -> () -> {
List<Callable<Void>> callables = Lists.transform(
dxSteps,
step -> (Callable<Void>) () -> {
stepRunner.runStepForBuildTarget(context, step, Optional.empty());
return null;
});
Expand Down

0 comments on commit 1e28fd6

Please sign in to comment.