HookQueue: Suppress FutureReturnValueIgnored warning

When all error prone warnings are enabled the FutureReturnValueIgnored
bug pattern is reported:

  plugins/hooks/src/main/java/com/googlesource/gerrit/plugins/hooks/HookQueue.java:46:
  error: [FutureReturnValueIgnored] Return value of methods returning Future must be checked.
  Ignoring returned Futures suppresses exceptions thrown from the code that completes the Future.
    queue.submit(new HookTask.Async(projectName, hook, args));
                ^
    (see https://errorprone.info/bugpattern/FutureReturnValueIgnored)
  Did you mean to remove this line?

Change-Id: I0412c6453c0d716d6bf4e445bebfeea019f63100
1 file changed
tree: f8c27145964e290c285bc54bd0f502e6bb0fb96b
  1. src/
  2. .gitignore
  3. BUILD
  4. LICENSE
  5. README.md
README.md

Hooks plugin

Gerrit does not support the standard server-side git hooks in the repositories it manages.

This plugin adds support for custom hooks that can be run instead. Refer to the configuration documentation and list of supported hooks for details.