aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/buildeventstream
diff options
context:
space:
mode:
authorGravatar Klaus Aehlig <aehlig@google.com>2016-09-30 10:49:02 +0000
committerGravatar Yun Peng <pcloudy@google.com>2016-09-30 10:57:30 +0000
commit95a87d0d8b26d9ca7d8d957dc23373b6a89e3d68 (patch)
tree04eaeaa0188f8a0fd23d317a15607bfd935793ce /src/main/java/com/google/devtools/build/lib/buildeventstream
parent95b16a89001014c48e77e5c38c4ca17bd28d3ebb (diff)
Add type annotation for the benefit of java 7
Fixes #1863 -- MOS_MIGRATED_REVID=134767527
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/buildeventstream')
-rw-r--r--src/main/java/com/google/devtools/build/lib/buildeventstream/AbortedEvent.java2
-rw-r--r--src/main/java/com/google/devtools/build/lib/buildeventstream/ProgressEvent.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/buildeventstream/AbortedEvent.java b/src/main/java/com/google/devtools/build/lib/buildeventstream/AbortedEvent.java
index cee0b41b4a..3421b974ae 100644
--- a/src/main/java/com/google/devtools/build/lib/buildeventstream/AbortedEvent.java
+++ b/src/main/java/com/google/devtools/build/lib/buildeventstream/AbortedEvent.java
@@ -23,7 +23,7 @@ public class AbortedEvent extends GenericBuildEvent {
public AbortedEvent(
BuildEventId id, BuildEventStreamProtos.Aborted.AbortReason reason, String description) {
- super(id, ImmutableList.of());
+ super(id, ImmutableList.<BuildEventId>of());
this.reason = reason;
this.description = description;
}
diff --git a/src/main/java/com/google/devtools/build/lib/buildeventstream/ProgressEvent.java b/src/main/java/com/google/devtools/build/lib/buildeventstream/ProgressEvent.java
index 97622614e9..c6792334f5 100644
--- a/src/main/java/com/google/devtools/build/lib/buildeventstream/ProgressEvent.java
+++ b/src/main/java/com/google/devtools/build/lib/buildeventstream/ProgressEvent.java
@@ -60,6 +60,6 @@ public final class ProgressEvent extends GenericBuildEvent {
*/
public static BuildEvent finalProgressUpdate(int number) {
BuildEventId id = BuildEventId.progressId(number);
- return new ProgressEvent(id, ImmutableList.of());
+ return new ProgressEvent(id, ImmutableList.<BuildEventId>of());
}
}