From 3e433a17e229793b83163e68731efdf846f67aaa Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Wed, 1 Oct 2014 10:04:34 +0200 Subject: SONAR-5603 Replace rails usage of IssueFinder by IssueService in issue filters widget --- .../main/java/org/sonar/core/issue/IssueNotifications.java | 11 ++++++++--- sonar-core/src/main/resources/org/sonar/l10n/core.properties | 1 - 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'sonar-core') diff --git a/sonar-core/src/main/java/org/sonar/core/issue/IssueNotifications.java b/sonar-core/src/main/java/org/sonar/core/issue/IssueNotifications.java index 44262e5dc5d..5cfec677dd0 100644 --- a/sonar-core/src/main/java/org/sonar/core/issue/IssueNotifications.java +++ b/sonar-core/src/main/java/org/sonar/core/issue/IssueNotifications.java @@ -77,16 +77,21 @@ public class IssueNotifications implements BatchComponent, ServerComponent { @CheckForNull public List sendChanges(DefaultIssue issue, IssueChangeContext context, Rule rule, Component project, @Nullable Component component) { + return sendChanges(issue, context, rule, project, component, null); + } + + @CheckForNull + public List sendChanges(DefaultIssue issue, IssueChangeContext context, Rule rule, Component project, @Nullable Component component, @Nullable String comment) { Map issues = Maps.newHashMap(); issues.put(issue, rule); - return sendChanges(issues, context, project, component); + return sendChanges(issues, context, project, component, comment); } @CheckForNull - public List sendChanges(Map issues, IssueChangeContext context, Component project, @Nullable Component component) { + public List sendChanges(Map issues, IssueChangeContext context, Component project, @Nullable Component component, @Nullable String comment) { List notifications = Lists.newArrayList(); for (Entry entry : issues.entrySet()) { - Notification notification = createChangeNotification(entry.getKey(), context, entry.getValue(), project, component, null); + Notification notification = createChangeNotification(entry.getKey(), context, entry.getValue(), project, component, comment); if (notification != null) { notifications.add(notification); } diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index b0477cfdc24..891c4e034c4 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -715,7 +715,6 @@ issue_filter.criteria.severity=Severity issue_filter.criteria.status=Status issue_filter.filter_list=Issues Filters issue_filter.max_results_reached=Only the first {0} issues matching the search criteria have been retrieved. Add some additional criteria to get fewer results to be able to sort this list. -issue_filter.widget.max_results_reached=Only the first {0} issues matching the search criteria have been retrieved. issue_filter.no_result=No matching issues found. issue_filter.no_result.help=Status of the related issues may have changed since the last analysis. issue_filter.save_filter=Save Filter -- cgit v1.2.3