aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-10-01 10:04:34 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-10-02 15:27:03 +0200
commit3e433a17e229793b83163e68731efdf846f67aaa (patch)
tree56c31af71569a7d976c808bc7209efa5cebb33be /sonar-core
parent3bdeb5ec00f5074c5de4cf2ff5fc66ee7f74793c (diff)
downloadsonarqube-3e433a17e229793b83163e68731efdf846f67aaa.tar.gz
sonarqube-3e433a17e229793b83163e68731efdf846f67aaa.zip
SONAR-5603 Replace rails usage of IssueFinder by IssueService in issue filters widget
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/issue/IssueNotifications.java11
-rw-r--r--sonar-core/src/main/resources/org/sonar/l10n/core.properties1
2 files changed, 8 insertions, 4 deletions
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<Notification> sendChanges(DefaultIssue issue, IssueChangeContext context, Rule rule, Component project, @Nullable Component component) {
+ return sendChanges(issue, context, rule, project, component, null);
+ }
+
+ @CheckForNull
+ public List<Notification> sendChanges(DefaultIssue issue, IssueChangeContext context, Rule rule, Component project, @Nullable Component component, @Nullable String comment) {
Map<DefaultIssue, Rule> issues = Maps.newHashMap();
issues.put(issue, rule);
- return sendChanges(issues, context, project, component);
+ return sendChanges(issues, context, project, component, comment);
}
@CheckForNull
- public List<Notification> sendChanges(Map<DefaultIssue, Rule> issues, IssueChangeContext context, Component project, @Nullable Component component) {
+ public List<Notification> sendChanges(Map<DefaultIssue, Rule> issues, IssueChangeContext context, Component project, @Nullable Component component, @Nullable String comment) {
List<Notification> notifications = Lists.newArrayList();
for (Entry<DefaultIssue, Rule> 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