diff options
author | 2015-11-19 15:14:15 +0000 | |
---|---|---|
committer | 2015-11-19 16:47:58 +0000 | |
commit | 8b1a0947bfd9a059a886c4cc45242ddc2ccec003 (patch) | |
tree | 00e5d0ed814126693ac18bf0a11c125342568a94 /src/main/java/com/google/devtools/build/lib/buildtool/buildevent/ExecutionStartingEvent.java | |
parent | d30ae4daafba3d1aad7dd15f988116ecf43a2d7f (diff) |
Workaround javac 1.7 bug
--
MOS_MIGRATED_REVID=108243881
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/buildtool/buildevent/ExecutionStartingEvent.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/buildtool/buildevent/ExecutionStartingEvent.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/buildtool/buildevent/ExecutionStartingEvent.java b/src/main/java/com/google/devtools/build/lib/buildtool/buildevent/ExecutionStartingEvent.java index 1ebc5e8d3d..14f3e2b3e3 100644 --- a/src/main/java/com/google/devtools/build/lib/buildtool/buildevent/ExecutionStartingEvent.java +++ b/src/main/java/com/google/devtools/build/lib/buildtool/buildevent/ExecutionStartingEvent.java @@ -31,7 +31,8 @@ public class ExecutionStartingEvent { * @param targets Remaining active targets. */ public ExecutionStartingEvent(Collection<? extends TransitiveInfoCollection> targets) { - this.targets = ImmutableList.copyOf(targets); + // Do not remove <TransitiveInfoCollection>: workaround for Java 7 type inference. + this.targets = ImmutableList.<TransitiveInfoCollection>copyOf(targets); } /** |