From 0129e930295d74255d727574f2ef08148156c6ad Mon Sep 17 00:00:00 2001 From: Janos Gyerik Date: Tue, 12 Jun 2018 13:20:07 +0200 Subject: SONAR-10868 Add issues.from_hotspot for security hotspots --- .../src/main/java/org/sonar/core/issue/DefaultIssue.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sonar-core') 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 tags) { this.tags = new LinkedHashSet<>(tags); return this; -- cgit v1.2.3