Class ApprovalsUtil


  • public class ApprovalsUtil
    extends Object
    Utility functions to manipulate patchset approvals.

    Approvals are overloaded, they represent both approvals and reviewers which should be CCed on a change. To ensure that reviewers are not lost there must always be an approval on each patchset for each reviewer, even if the reviewer hasn't actually given a score to the change. To mark the "no score" case, a dummy approval, which may live in any of the available categories, with a score of 0 is used.