aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorAntoine Vinot <antoine.vinot@sonarsource.com>2024-12-18 19:31:03 +0100
committersonartech <sonartech@sonarsource.com>2024-12-18 20:03:12 +0000
commit2d1ebbaab1f390b6bd677a4d8796a37c2c7b38b9 (patch)
tree762601133646b875149d6428cce1c7f8779dd490 /sonar-core
parentcb59c36c030f93c0ebe93ea6425bf8c0057fde34 (diff)
downloadsonarqube-2d1ebbaab1f390b6bd677a4d8796a37c2c7b38b9.tar.gz
sonarqube-2d1ebbaab1f390b6bd677a4d8796a37c2c7b38b9.zip
SONAR-15049 Taint Vulnerabilities should be reopened if new flows are created
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/issue/DefaultIssueComment.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssueComment.java b/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssueComment.java
index 9f548926fcc..ec253c71268 100644
--- a/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssueComment.java
+++ b/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssueComment.java
@@ -40,6 +40,10 @@ public class DefaultIssueComment implements Serializable {
private String markdownText;
private boolean isNew;
+ public static DefaultIssueComment create(String issueKey, String markdownText) {
+ return create(issueKey, null, markdownText);
+ }
+
public static DefaultIssueComment create(String issueKey, @Nullable String userUuid, String markdownText) {
DefaultIssueComment comment = new DefaultIssueComment();
comment.setIssueKey(issueKey);