Don't use AccountAccess directly

Accounts are migrated to NoteDb and then ReviewDb#accounts() will be
removed. The new way to read accounts is by using the Accounts class
which makes it transparent for the caller whether accounts are read from
ReviewDb or NoteDb.

FindOwnerIT is adapted to use Accounts to load accounts for

Since change I363a8ee040 in Gerrit core the account cache is available
to Prolog predicates. Checker is now using the account cache to lookup
accounts. This should also result in better performance than loading the
accounts from the database each time Prolog rules are evaluated.

Change-Id: I92751e401ef3fcb768e315dad4752f35c6a62919
Signed-off-by: Edwin Kempin <>
2 files changed
tree: c4b559d1260c7f643ed7719b89b5d67aa73c2ce6
  1. src/
  2. BUILD