diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-06-04 19:04:44 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-06-04 19:05:21 +0200 |
commit | b3070fe1c1fc8c15cf8ba5e0433fec598572bdc4 (patch) | |
tree | c8fc47d90d1d8d034c07cad214fa2e70d55ba67d /sonar-plugin-api | |
parent | 01809e26ca0408b39a6153a57c5509e0df98350e (diff) | |
download | sonarqube-b3070fe1c1fc8c15cf8ba5e0433fec598572bdc4.tar.gz sonarqube-b3070fe1c1fc8c15cf8ba5e0433fec598572bdc4.zip |
SONAR-4309 Support concurrent modifications on issues made by batch and simultaneously by user
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/issue/internal/DefaultIssue.java | 14 |
1 files changed, 14 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 e594b754145..8bd1e6b322b 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 @@ -89,6 +89,9 @@ public class DefaultIssue implements Issue { // true if some fields have been changed since the previous scan private boolean isChanged = false; + // Date when issue was loaded from db (only when isNew=false) + private Date selectedAt; + public String key() { return key; } @@ -380,6 +383,15 @@ public class DefaultIssue implements Issue { return Objects.firstNonNull(comments, Collections.<IssueComment>emptyList()); } + @CheckForNull + public Date selectedAt() { + return selectedAt; + } + + public void setSelectedAt(@Nullable Date d) { + this.selectedAt = d; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -404,4 +416,6 @@ public class DefaultIssue implements Issue { public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE); } + + } |