diff options
Diffstat (limited to 'java/com/google/gerrit/server/mail/send/NotificationEmail.java')
-rw-r--r-- | java/com/google/gerrit/server/mail/send/NotificationEmail.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/java/com/google/gerrit/server/mail/send/NotificationEmail.java b/java/com/google/gerrit/server/mail/send/NotificationEmail.java index 5ffd9284b7..91310ce094 100644 --- a/java/com/google/gerrit/server/mail/send/NotificationEmail.java +++ b/java/com/google/gerrit/server/mail/send/NotificationEmail.java @@ -82,13 +82,15 @@ public abstract class NotificationEmail extends OutgoingEmail { /** Add users or email addresses to the TO, CC, or BCC list. */ protected void add(RecipientType type, Watchers.List list) { for (Account.Id user : list.accounts) { - add(type, user); + addWatcher(type, user); } for (Address addr : list.emails) { add(type, addr); } } + protected abstract void addWatcher(RecipientType type, Account.Id to); + public String getSshHost() { String host = Iterables.getFirst(args.sshAddresses, null); if (host == null) { |