diff options
author | Jacek <jacek.poreda@sonarsource.com> | 2019-12-06 10:11:44 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2020-01-13 20:46:26 +0100 |
commit | 114efaae21bbf1c8a42c4f17627a0496ce65a2be (patch) | |
tree | de96bdc924b5d4a226b974388554030dfc3df6eb /server/sonar-ce-task-projectanalysis/src/main/java | |
parent | b8d394da901488b5493e95c0bf98d0ff1139de09 (diff) | |
download | sonarqube-114efaae21bbf1c8a42c4f17627a0496ce65a2be.tar.gz sonarqube-114efaae21bbf1c8a42c4f17627a0496ce65a2be.zip |
SONAR-12725 drop manual vulnerabilities
* drop manual vulnerabilities
* remove issues `from_hotspot` column usage
Diffstat (limited to 'server/sonar-ce-task-projectanalysis/src/main/java')
-rw-r--r-- | server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/issue/IssueLifecycle.java | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/issue/IssueLifecycle.java b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/issue/IssueLifecycle.java index 4505d748997..7c01c43f013 100644 --- a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/issue/IssueLifecycle.java +++ b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/issue/IssueLifecycle.java @@ -76,7 +76,6 @@ public class IssueLifecycle { issue.setCreationDate(changeContext.date()); issue.setUpdateDate(changeContext.date()); issue.setEffort(debtCalculator.calculate(issue)); - issue.setIsFromHotspot(rule.getType() == RuleType.SECURITY_HOTSPOT); setType(issue, rule); setStatus(issue, rule); } @@ -165,20 +164,9 @@ public class IssueLifecycle { // In case issue was moved from module or folder to the root project raw.setChanged(true); } - raw.setIsFromHotspot(rule.getType() == RuleType.SECURITY_HOTSPOT); setType(raw, rule); copyFields(raw, base); base.changes().forEach(raw::addChange); - if (raw.isFromHotspot() != base.isFromHotspot()) { - // This is to force DB update of the issue - raw.setChanged(true); - } - if (raw.isFromHotspot() && !base.isFromHotspot()) { - // First analysis after rule type was changed to security_hotspot. Issue will be reset to an open hotspot - updater.setType(raw, RuleType.SECURITY_HOTSPOT, changeContext); - updater.setStatus(raw, Issue.STATUS_TO_REVIEW, changeContext); - updater.setResolution(raw, null, changeContext); - } if (base.manualSeverity()) { raw.setManualSeverity(true); |