PathCodeOwners: Add an AutoValue class to represent the result

PathCodeOwners resolve a code owner config for a path. Add an AutoValue
class to represent the result of resolving the code owner config and
move the get() and ignoreParentCodeOwners() into it, as they operate on
the resolved code owner config. Since in the context of the new
AutoValue class the meaning of the get() method is not that clear,
rename it to getPathCodeOwners().

Having a dedicated result class will allow us to add further properties
to in in follow-up changes (e.g. a flag to tell whether there have been
unresolved imports).

Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: Ibd6e390b91ee15427c7da730bec1c5db9c209c35
5 files changed
tree: e51263ef2b284c2a5681d2e378723e4f2129823a
  1. java/
  2. javatests/
  3. proto/
  4. resources/
  5. test/
  6. ui/
  7. .eslintrc.json
  8. .gitignore
  9. .gitreview
  10. bower.json
  11. BUILD
  12. LICENSE
  13. package-lock.json
  14. package.json
  15. README.md
README.md

Gerrit Code Review code-owners plugin

This plugin provides support for defining code owners for files in a repository.

If the code-owners plugin is enabled, changes can only be submitted if all touched files are covered by approvals from code owners.

Also see resources/Documentation/about.md

IMPORTANT: Before installing/enabling the plugin follow the instructions from the setup guide, see resources/Documentation/setup-guide.md