Skip to content

Commit 5244eb6

Browse files
committed
PLUGINAPI-154 New issue status - IN_SANDBOX
1 parent 9a20b75 commit 5244eb6

4 files changed

Lines changed: 15 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 13.2
4+
* Add `org.sonar.api.issue.IssueStatus.IN_SANDBOX` enum value
5+
* Add `org.sonar.api.issue.Issue.STATUS_IN_SANDBOX` constant (deprecated immediately)
6+
37
## 13.1
48
* Introduce support for internal tags on issues:
59
* Introduce `org.sonar.api.batch.sensor.issue.Issue.internalTags()`

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
group=org.sonarsource.api.plugin
2-
version=13.1-SNAPSHOT
2+
version=13.2-SNAPSHOT
33
description=Plugin API for SonarQube, SonarCloud and SonarLint
44
org.gradle.jvmargs=-Xmx2048m

plugin-api/src/main/java/org/sonar/api/issue/Issue.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ public interface Issue extends Serializable {
7171
*/
7272
@Deprecated(since = "10.4")
7373
String STATUS_CLOSED = "CLOSED";
74+
/**
75+
* @deprecated since 13.2 in favor of {@link IssueStatus}
76+
*/
77+
@Deprecated(since = "13.2")
78+
String STATUS_IN_SANDBOX = "IN_SANDBOX";
7479

7580
String RESOLUTION_FIXED = "FIXED";
7681

@@ -131,7 +136,7 @@ public interface Issue extends Serializable {
131136
*/
132137
@Deprecated(since = "10.4")
133138
List<String> STATUSES = List.of(STATUS_OPEN, STATUS_CONFIRMED, STATUS_REOPENED, STATUS_RESOLVED, STATUS_CLOSED,
134-
STATUS_TO_REVIEW, STATUS_REVIEWED);
139+
STATUS_IN_SANDBOX, STATUS_TO_REVIEW, STATUS_REVIEWED);
135140

136141
/**
137142
* Unique generated key. It looks like "d2de809c-1512-4ae2-9f34-f5345c9f1a13".

plugin-api/src/main/java/org/sonar/api/issue/IssueStatus.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ public enum IssueStatus {
3939
CONFIRMED,
4040
FALSE_POSITIVE,
4141
ACCEPTED,
42-
FIXED;
42+
FIXED,
43+
IN_SANDBOX;
4344

4445
private static final Logger LOGGER = LoggerFactory.getLogger(IssueStatus.class);
4546

@@ -60,6 +61,8 @@ public static IssueStatus of(@Nullable String status, @Nullable String resolutio
6061
return IssueStatus.CONFIRMED;
6162
case Issue.STATUS_CLOSED:
6263
return IssueStatus.FIXED;
64+
case Issue.STATUS_IN_SANDBOX:
65+
return IssueStatus.IN_SANDBOX;
6366
// Security hotspot should not return issue status.
6467
case Issue.STATUS_REVIEWED:
6568
case Issue.STATUS_TO_REVIEW:

0 commit comments

Comments
 (0)