Skip to content

Commit 6ddc8e4

Browse files
PLUGINAPI-134 Remove deprecated Issue Workflow transitions and statuses (#233)
1 parent 5244845 commit 6ddc8e4

File tree

4 files changed

+9
-41
lines changed

4 files changed

+9
-41
lines changed

CHANGELOG.md

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

3+
## 12.0
4+
* Remove `org.sonar.api.issue.DefaultTransitions.SET_AS_IN_REVIEW`.
5+
* Remove `org.sonar.api.issue.DefaultTransitions.OPEN_AS_VULNERABILITY`.
6+
* Remove `org.sonar.api.issue.Issue.STATUS_IN_REVIEW`.
7+
* Remove `org.sonar.api.issue.Issue.attribute(String key)`.
8+
* Remove `org.sonar.api.issue.Issue.attributes()`.
9+
310
## 11.4
411
* Deprecate `org.sonar.api.issue.DefaultTransitions`
512
* Deprecate `org.sonar.api.web.UserRole`

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=11.5-SNAPSHOT
2+
version=12.0-SNAPSHOT
33
description=Plugin API for SonarQube, SonarCloud and SonarLint
44
org.gradle.jvmargs=-Xmx2048m

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

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121

2222
import java.util.List;
2323

24-
import static java.util.Arrays.asList;
25-
import static java.util.Collections.unmodifiableList;
26-
2724
/**
2825
* @since 3.6
2926
* @deprecated since 11.4 not used by any extension point anymore
@@ -59,19 +56,6 @@ public interface DefaultTransitions {
5956
*/
6057
String ACCEPT = "accept";
6158

62-
/**
63-
* @deprecated since 8.1, transition has no effect
64-
*/
65-
@Deprecated
66-
String SET_AS_IN_REVIEW = "setinreview";
67-
68-
/**
69-
* @since 7.8
70-
* @deprecated since 8.1, security hotspots can no longer be converted to vulnerabilities
71-
*/
72-
@Deprecated
73-
String OPEN_AS_VULNERABILITY = "openasvulnerability";
74-
7559
/**
7660
* @since 7.8
7761
*/
@@ -96,5 +80,5 @@ public interface DefaultTransitions {
9680
* @since 4.4
9781
*/
9882
List<String> ALL = List.of(CONFIRM, UNCONFIRM, REOPEN, RESOLVE, FALSE_POSITIVE, WONT_FIX, CLOSE,
99-
SET_AS_IN_REVIEW, RESOLVE_AS_REVIEWED, RESET_AS_TO_REVIEW, ACCEPT);
83+
RESOLVE_AS_REVIEWED, RESET_AS_TO_REVIEW, ACCEPT);
10084
}

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

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,6 @@ public interface Issue extends Serializable {
121121

122122
String STATUS_TO_REVIEW = "TO_REVIEW";
123123

124-
/**
125-
* @deprecated since 8.1, status has been mapped as `TO_REVIEW`
126-
*/
127-
@Deprecated(since = "8.1")
128-
String STATUS_IN_REVIEW = "IN_REVIEW";
129-
130124
String STATUS_REVIEWED = "REVIEWED";
131125

132126
/**
@@ -215,23 +209,6 @@ public interface Issue extends Serializable {
215209
@CheckForNull
216210
Date closeDate();
217211

218-
/**
219-
* @deprecated since 9.4, attribute was already not returning any element since 5.2
220-
*/
221-
@Deprecated
222-
@CheckForNull
223-
String attribute(String key);
224-
225-
/**
226-
* Empty on batch side since version 5.2. Attributes are moved to server's Compute Engine. No use-case for keeping them
227-
* on batch side for now
228-
*/
229-
/**
230-
* @deprecated since 9.4, attribute was already not returning any element since 5.2
231-
*/
232-
@Deprecated
233-
Map<String, String> attributes();
234-
235212
/**
236213
* Login of the SCM account that introduced this issue. Requires the
237214
* <a href="http://www.sonarsource.com/products/plugins/developer-tools/developer-cockpit/">Developer Cockpit Plugin</a> to be installed.

0 commit comments

Comments
 (0)