summaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-07-16 15:54:03 +0200
committerDavid Gageot <david@gageot.net>2012-07-16 15:54:03 +0200
commitf7a07488077b01dfb9abbd3dd5161f2433bb43a0 (patch)
treeb67865d21e366385748e9bfed24e9f5d7aaf6fb1 /sonar-server
parent592cb1f45be74a17310ab7bb623c3e0e54dbea9f (diff)
downloadsonarqube-f7a07488077b01dfb9abbd3dd5161f2433bb43a0.tar.gz
sonarqube-f7a07488077b01dfb9abbd3dd5161f2433bb43a0.zip
Fix violation
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/java/org/sonar/server/notifications/NotificationService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/sonar-server/src/main/java/org/sonar/server/notifications/NotificationService.java b/sonar-server/src/main/java/org/sonar/server/notifications/NotificationService.java
index 1a449271566..96dfa809ccc 100644
--- a/sonar-server/src/main/java/org/sonar/server/notifications/NotificationService.java
+++ b/sonar-server/src/main/java/org/sonar/server/notifications/NotificationService.java
@@ -145,6 +145,10 @@ public class NotificationService implements ServerComponent {
}
}
}
+ dispatch(notification, recipients);
+ }
+
+ private void dispatch(Notification notification, SetMultimap<String, NotificationChannel> recipients) {
for (Map.Entry<String, Collection<NotificationChannel>> entry : recipients.asMap().entrySet()) {
String username = entry.getKey();
Collection<NotificationChannel> userChannels = entry.getValue();