aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/test/java/com/google/devtools/build/lib/events/util/EventCollectionApparatus.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/events/util/EventCollectionApparatus.java b/src/test/java/com/google/devtools/build/lib/events/util/EventCollectionApparatus.java
index c7f85d6fcb..c753110e5b 100644
--- a/src/test/java/com/google/devtools/build/lib/events/util/EventCollectionApparatus.java
+++ b/src/test/java/com/google/devtools/build/lib/events/util/EventCollectionApparatus.java
@@ -29,17 +29,12 @@ import java.util.Set;
* An apparatus for reporting / collecting events.
*/
public class EventCollectionApparatus {
-
- private Set<EventKind> customMask;
-
/**
* Determine which events the {@link #collector()} created by this apparatus
* will collect. Default: {@link EventKind#ERRORS_AND_WARNINGS}.
*/
public EventCollectionApparatus(Set<EventKind> mask) {
- this.customMask = mask;
-
- eventCollector = new EventCollector(customMask);
+ eventCollector = new EventCollector(mask);
reporter = new Reporter(eventCollector);
printingEventHandler = new PrintingEventHandler(EventKind.ERRORS_AND_WARNINGS_AND_OUTPUT);
reporter.addHandler(printingEventHandler);