Use @Nullable instead of optional Guice injections

From Gerrit v3.12, the Guice optional injections are still
complaining for the lack of @Nullable annotation as highlighted
in the discussion thread [1].

Use @Nullable with injected parameters which also makes the code
more readable.

[1] https://groups.google.com/g/repo-discuss/c/VKhLIO4Waww

Change-Id: I936d1624d2a8ca8100c5a127587d5b30a0c8b23e
1 file changed
tree: 07a8b3ca81f7ea0b81fb61173b8d4cd8737cdbfa
  1. src/
  2. .gitignore
  3. BUILD
  4. external_plugin_deps.bzl
  5. Jenkinsfile
  6. LICENSE
  7. README.md
README.md

Gerrit Zookeeper ref-db

This plugin provides an implementation of the Gerrit global ref-db backed by Apache Zookeeper.

Requirements for using this plugin are:

  • Gerrit v3.2 or later
  • Apache Zookeeper v3.4 or later

Typical use-case

The global ref-db is a typical use-case of a Gerrit multi-master scenario in a multi-site setup. Refer to the Gerrit multi-site plugin for more details on the high level architecture.