]> source.dussan.org Git - sonarqube.git/commitdiff
Fix violation
authorDavid Gageot <david@gageot.net>
Mon, 16 Jul 2012 13:54:03 +0000 (15:54 +0200)
committerDavid Gageot <david@gageot.net>
Mon, 16 Jul 2012 13:54:03 +0000 (15:54 +0200)
sonar-server/src/main/java/org/sonar/server/notifications/NotificationService.java

index 1a4492715666b547ae1a5d35063ac0c191da29e0..96dfa809cccb1b4b377243c53c1d19ae116d42c0 100644 (file)
@@ -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();