Send email notifications and fire Gerrit event if comments are posted via email

Change-Id: I4121b8d8b13f9a675fc227a81f6543501b3084f6
This commit is contained in:
Patrick Hiesel
2017-02-07 08:41:32 +01:00
parent c76731bbef
commit 1fce31c863
3 changed files with 93 additions and 11 deletions

View File

@@ -49,7 +49,7 @@ import org.slf4j.LoggerFactory;
public class EmailReviewComments implements Runnable, RequestContext {
private static final Logger log = LoggerFactory.getLogger(EmailReviewComments.class);
interface Factory {
public interface Factory {
EmailReviewComments create(
NotifyHandling notify,
ListMultimap<RecipientType, Account.Id> accountsToNotify,
@@ -111,7 +111,7 @@ public class EmailReviewComments implements Runnable, RequestContext {
this.labels = labels;
}
void sendAsync() {
public void sendAsync() {
@SuppressWarnings("unused")
Future<?> possiblyIgnoredError = sendEmailsExecutor.submit(this);
}