diff options
author | Pierre Guillot <pierre.guillot@sonarsource.com> | 2019-05-14 11:31:26 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-05-22 20:21:15 +0200 |
commit | 023f54edfeb8f88ad79beafe23018e7637cba902 (patch) | |
tree | 17977d0eaf6dffd665b561016f27c509c7629be1 /sonar-plugin-api | |
parent | 582503f4b16b06b08f043f70f6972e9d3d93610d (diff) | |
download | sonarqube-023f54edfeb8f88ad79beafe23018e7637cba902.tar.gz sonarqube-023f54edfeb8f88ad79beafe23018e7637cba902.zip |
SONAR-12026 add new hotspots statuses to facet
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/issue/Issue.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/issue/Issue.java b/sonar-plugin-api/src/main/java/org/sonar/api/issue/Issue.java index 63d072a014a..2f0f25aec86 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/issue/Issue.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/issue/Issue.java @@ -29,6 +29,7 @@ import org.sonar.api.rule.RuleKey; import org.sonar.api.utils.Duration; import static java.util.Arrays.asList; +import static java.util.Collections.unmodifiableList; /** * @since 3.6 @@ -73,7 +74,7 @@ public interface Issue extends Serializable { */ String RESOLUTION_WONT_FIX = "WONTFIX"; - List<String> RESOLUTIONS = asList(RESOLUTION_FALSE_POSITIVE, RESOLUTION_WONT_FIX, RESOLUTION_FIXED, RESOLUTION_REMOVED); + List<String> RESOLUTIONS = unmodifiableList(asList(RESOLUTION_FALSE_POSITIVE, RESOLUTION_WONT_FIX, RESOLUTION_FIXED, RESOLUTION_REMOVED)); /** * @since 7.8 @@ -95,7 +96,8 @@ public interface Issue extends Serializable { * * @since 4.4 */ - List<String> STATUSES = asList(STATUS_OPEN, STATUS_CONFIRMED, STATUS_REOPENED, STATUS_RESOLVED, STATUS_CLOSED); + List<String> STATUSES = unmodifiableList(asList(STATUS_OPEN, STATUS_CONFIRMED, STATUS_REOPENED, STATUS_RESOLVED, STATUS_CLOSED, + STATUS_TO_REVIEW, STATUS_IN_REVIEW, STATUS_REVIEWED)); /** * Unique generated key. It looks like "d2de809c-1512-4ae2-9f34-f5345c9f1a13". |