Example usage for org.eclipse.jgit.revwalk FooterKey CC

List of usage examples for org.eclipse.jgit.revwalk FooterKey CC

Introduction

In this page you can find the example usage for org.eclipse.jgit.revwalk FooterKey CC.

Prototype

FooterKey CC

To view the source code for org.eclipse.jgit.revwalk FooterKey CC.

Click Source Link

Document

Standard CC

Usage

From source file:com.google.gerrit.server.mail.MailUtil.java

License:Apache License

public static MailRecipients getRecipientsFromFooters(final AccountResolver accountResolver, final PatchSet ps,
        final List<FooterLine> footerLines) throws OrmException {
    final MailRecipients recipients = new MailRecipients();
    if (!ps.isDraft()) {
        for (final FooterLine footerLine : footerLines) {
            try {
                if (isReviewer(footerLine)) {
                    recipients.reviewers.add(toAccountId(accountResolver, footerLine.getValue().trim()));
                } else if (footerLine.matches(FooterKey.CC)) {
                    recipients.cc.add(toAccountId(accountResolver, footerLine.getValue().trim()));
                }//from  w w  w. j a v  a2  s.  c o m
            } catch (NoSuchAccountException e) {
                continue;
            }
        }
    }
    return recipients;
}