aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/buildeventservice/BuildEventServiceModule.java
diff options
context:
space:
mode:
authorGravatar ulfjack <ulfjack@google.com>2017-06-13 17:15:45 +0200
committerGravatar Yun Peng <pcloudy@google.com>2017-06-14 13:13:21 +0200
commita6a9910ad8d5a22bfabfb20a92575090668f7a32 (patch)
treee54f7a4ec13faab5aec3b13756b2057dbd162b3f /src/main/java/com/google/devtools/build/lib/buildeventservice/BuildEventServiceModule.java
parent9323f3b8afb02df8ac359fb5f6805ba94361591f (diff)
Simplify BlazeModule.beforeCommand
Don't pass the Command annotation explicitly, but add it to CommandEnvironment instead; most modules don't need it in the first place, so it was a lot of boilerplate for not much. Also change it so that the command is passed to the constructor. Add some documentation to the beforeCommand method. PiperOrigin-RevId: 158847128
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/buildeventservice/BuildEventServiceModule.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/buildeventservice/BuildEventServiceModule.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/buildeventservice/BuildEventServiceModule.java b/src/main/java/com/google/devtools/build/lib/buildeventservice/BuildEventServiceModule.java
index 76c446bd95..ad2b3fd9db 100644
--- a/src/main/java/com/google/devtools/build/lib/buildeventservice/BuildEventServiceModule.java
+++ b/src/main/java/com/google/devtools/build/lib/buildeventservice/BuildEventServiceModule.java
@@ -82,7 +82,7 @@ public abstract class BuildEventServiceModule<T extends BuildEventServiceOptions
}
@Override
- public void beforeCommand(Command command, CommandEnvironment commandEnvironment)
+ public void beforeCommand(CommandEnvironment commandEnvironment)
throws AbruptExitException {
this.commandEnvironment = commandEnvironment;
this.buildEventRecorder = new BuildEventRecorder();