diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-07-30 16:38:00 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-07-30 16:40:56 +0200 |
commit | 9c4ffc5a109d4452930b7d655aff82931d764fd5 (patch) | |
tree | 98ec82f64fcdfa0d5425f6c46dd3a7dddd74eb8e /sonar-plugin-api/src | |
parent | 4a22e53507fb3f3ec4d3cc3d5721955679d3ab85 (diff) | |
download | sonarqube-9c4ffc5a109d4452930b7d655aff82931d764fd5.tar.gz sonarqube-9c4ffc5a109d4452930b7d655aff82931d764fd5.zip |
SONAR-4540 Notifications should not be sent on changes of issue line, author or effort to fix
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/issue/internal/DefaultIssue.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/issue/internal/DefaultIssue.java b/sonar-plugin-api/src/main/java/org/sonar/api/issue/internal/DefaultIssue.java index 0a4ba0394e8..739ec339918 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/issue/internal/DefaultIssue.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/issue/internal/DefaultIssue.java @@ -91,6 +91,9 @@ public class DefaultIssue implements Issue { // true if some fields have been changed since the previous scan private boolean isChanged = false; + // true if notifications have to be sent + private boolean sendNotifications = false; + // Date when issue was loaded from db (only when isNew=false) private Date selectedAt; @@ -309,6 +312,15 @@ public class DefaultIssue implements Issue { return this; } + public boolean mustSendNotifications() { + return sendNotifications; + } + + public DefaultIssue setSendNotifications(boolean b) { + sendNotifications = b; + return this; + } + @CheckForNull public String attribute(String key) { return attributes == null ? null : attributes.get(key); |