diff options
author | Antoine Vinot <antoine.vinot@sonarsource.com> | 2022-10-14 15:25:31 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-10-14 20:03:04 +0000 |
commit | 2848332821f71059e9347be030ebcad0dae59b50 (patch) | |
tree | f984eb89bc22067244f1de5e0de3b602151e8ab2 /server/sonar-webserver-api | |
parent | 19c13147acef696b5a8b717da01432373e84bb1f (diff) | |
download | sonarqube-2848332821f71059e9347be030ebcad0dae59b50.tar.gz sonarqube-2848332821f71059e9347be030ebcad0dae59b50.zip |
NO-JIRA Fix code smells
Diffstat (limited to 'server/sonar-webserver-api')
2 files changed, 0 insertions, 4 deletions
diff --git a/server/sonar-webserver-api/src/main/java/org/sonar/server/qualitygate/changeevent/ChangedIssueImpl.java b/server/sonar-webserver-api/src/main/java/org/sonar/server/qualitygate/changeevent/ChangedIssueImpl.java index 4fb7264c4bf..560bc6de381 100644 --- a/server/sonar-webserver-api/src/main/java/org/sonar/server/qualitygate/changeevent/ChangedIssueImpl.java +++ b/server/sonar-webserver-api/src/main/java/org/sonar/server/qualitygate/changeevent/ChangedIssueImpl.java @@ -53,8 +53,6 @@ class ChangedIssueImpl implements QGChangeEventListener.ChangedIssue { return QGChangeEventListener.Status.REOPENED; case Issue.STATUS_TO_REVIEW: return QGChangeEventListener.Status.TO_REVIEW; - case Issue.STATUS_IN_REVIEW: - return QGChangeEventListener.Status.IN_REVIEW; case Issue.STATUS_REVIEWED: return QGChangeEventListener.Status.REVIEWED; case Issue.STATUS_RESOLVED: diff --git a/server/sonar-webserver-api/src/test/java/org/sonar/server/qualitygate/changeevent/QGChangeEventListenersImplTest.java b/server/sonar-webserver-api/src/test/java/org/sonar/server/qualitygate/changeevent/QGChangeEventListenersImplTest.java index 4a25dc93395..b676f5cc1d2 100644 --- a/server/sonar-webserver-api/src/test/java/org/sonar/server/qualitygate/changeevent/QGChangeEventListenersImplTest.java +++ b/server/sonar-webserver-api/src/test/java/org/sonar/server/qualitygate/changeevent/QGChangeEventListenersImplTest.java @@ -343,8 +343,6 @@ public class QGChangeEventListenersImplTest { public void test_status_mapping_on_security_hotspots() { assertThat(ChangedIssueImpl.statusOf(new DefaultIssue().setType(RuleType.SECURITY_HOTSPOT).setStatus(Issue.STATUS_TO_REVIEW))) .isEqualTo(QGChangeEventListener.Status.TO_REVIEW); - assertThat(ChangedIssueImpl.statusOf(new DefaultIssue().setType(RuleType.SECURITY_HOTSPOT).setStatus(Issue.STATUS_IN_REVIEW))) - .isEqualTo(QGChangeEventListener.Status.IN_REVIEW); assertThat(ChangedIssueImpl.statusOf(new DefaultIssue().setType(RuleType.SECURITY_HOTSPOT).setStatus(Issue.STATUS_REVIEWED))) .isEqualTo(QGChangeEventListener.Status.REVIEWED); } |