diff options
author | Janos Gyerik <janos.gyerik@sonarsource.com> | 2018-06-12 13:20:07 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2018-07-04 09:31:03 +0200 |
commit | 0129e930295d74255d727574f2ef08148156c6ad (patch) | |
tree | e9cfa0c3c6e8956589909dd399f0fd6df1338593 /sonar-core | |
parent | d42307dd484ab82daecddb4e98b2085ba711b34f (diff) | |
download | sonarqube-0129e930295d74255d727574f2ef08148156c6ad.tar.gz sonarqube-0129e930295d74255d727574f2ef08148156c6ad.zip |
SONAR-10868 Add issues.from_hotspot for security hotspots
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java b/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java index 04513564a03..125c9bd51e6 100644 --- a/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java +++ b/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java @@ -88,6 +88,8 @@ public class DefaultIssue implements Issue, Trackable, org.sonar.api.ce.measure. private Date updateDate; private Date closeDate; + private boolean isFromHotspot = false; + // FOLLOWING FIELDS ARE AVAILABLE ONLY DURING SCAN // Current changes @@ -606,6 +608,15 @@ public class DefaultIssue implements Issue, Trackable, org.sonar.api.ce.measure. } } + public DefaultIssue setIsFromHotspot(boolean value) { + this.isFromHotspot = value; + return this; + } + + public boolean isFromHotspot() { + return isFromHotspot; + } + public DefaultIssue setTags(Collection<String> tags) { this.tags = new LinkedHashSet<>(tags); return this; |