diff options
author | 2018-07-23 01:19:20 -0700 | |
---|---|---|
committer | 2018-07-23 01:20:29 -0700 | |
commit | f000996d0c12c1e239cce200c2792f226adcb89b (patch) | |
tree | 22f55535a9ad659ef48f6e8bedb1d2680a21b989 /src/main/java/com/google/devtools/build/lib/buildeventstream | |
parent | 17b217c0110e9bbc2145de563ab0d599c6339890 (diff) |
Fix TargetCompleteEvent.referencedLocalFiles
It was missing the baseline coverage files, if any.
This is safe even if unknown commit is rolled back.
PiperOrigin-RevId: 205626149
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/buildeventstream')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEvent.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEvent.java b/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEvent.java index cee573cae2..3342909c1d 100644 --- a/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEvent.java +++ b/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildEvent.java @@ -14,6 +14,7 @@ package com.google.devtools.build.lib.buildeventstream; +import com.google.common.base.MoreObjects; import com.google.common.base.Objects; import com.google.common.collect.ImmutableList; import com.google.devtools.build.lib.events.ExtendedEventHandler; @@ -72,6 +73,14 @@ public interface BuildEvent extends ChainableEvent, ExtendedEventHandler.Postabl public int hashCode() { return Objects.hashCode(path, type); } + + @Override + public String toString() { + return MoreObjects.toStringHelper(LocalFile.class) + .add("path", path) + .add("type", type) + .toString(); + } } /** |