aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyDefinition.java
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2021-06-09 16:26:56 -0500
committersonartech <sonartech@sonarsource.com>2021-06-17 20:03:08 +0000
commit2754feca4e5fa8fdd804c827783250f48676296c (patch)
tree1ed9522bbc9eff9444fae6bf0a951d976da2b859 /sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyDefinition.java
parent97f2c01fdd4ae863134d4aa1bf32b7dcd512b10c (diff)
downloadsonarqube-2754feca4e5fa8fdd804c827783250f48676296c.tar.gz
sonarqube-2754feca4e5fa8fdd804c827783250f48676296c.zip
SONAR-14925 Remove code deprecated before 7.0 in the Plugin API
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyDefinition.java')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyDefinition.java28
1 files changed, 1 insertions, 27 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyDefinition.java b/sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyDefinition.java
index da3f1cc1c8c..c5870c1eba7 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyDefinition.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyDefinition.java
@@ -28,7 +28,6 @@ import java.util.Set;
import java.util.function.Function;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;
-import java.util.stream.Stream;
import javax.annotation.Nullable;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.math.NumberUtils;
@@ -42,7 +41,6 @@ import org.sonar.api.server.ServerSide;
import org.sonarsource.api.sonarlint.SonarLintSide;
import static java.util.Arrays.asList;
-import static java.util.Arrays.stream;
import static java.util.Collections.unmodifiableSet;
import static java.util.Objects.requireNonNull;
import static org.apache.commons.lang.StringUtils.isBlank;
@@ -110,7 +108,6 @@ public final class PropertyDefinition {
private List<String> qualifiers;
private boolean global;
private boolean multiValues;
- private String propertySetKey;
private String deprecatedKey;
private List<PropertyFieldDefinition> fields;
/**
@@ -130,7 +127,6 @@ public final class PropertyDefinition {
this.type = builder.type;
this.options = builder.options;
this.multiValues = builder.multiValues;
- this.propertySetKey = builder.propertySetKey;
this.fields = builder.fields;
this.deprecatedKey = builder.deprecatedKey;
this.qualifiers = builder.onQualifiers;
@@ -155,7 +151,6 @@ public final class PropertyDefinition {
.type(annotation.type())
.options(asList(annotation.options()))
.multiValues(annotation.multiValues())
- .propertySetKey(annotation.propertySetKey())
.fields(PropertyFieldDefinition.create(annotation.fields()))
.deprecatedKey(annotation.deprecatedKey());
List<String> qualifiers = new ArrayList<>();
@@ -312,14 +307,6 @@ public final class PropertyDefinition {
return multiValues;
}
- /**
- * @deprecated since 6.1, as it was not used and too complex to maintain.
- */
- @Deprecated
- public String propertySetKey() {
- return propertySetKey;
- }
-
public List<PropertyFieldDefinition> fields() {
return fields;
}
@@ -338,10 +325,7 @@ public final class PropertyDefinition {
@Override
public String toString() {
- if (isEmpty(propertySetKey)) {
- return key;
- }
- return new StringBuilder().append(propertySetKey).append('|').append(key).toString();
+ return key;
}
public static final class Result {
@@ -386,7 +370,6 @@ public final class PropertyDefinition {
private PropertyType type = PropertyType.STRING;
private List<String> options = new ArrayList<>();
private boolean multiValues = false;
- private String propertySetKey = "";
private List<PropertyFieldDefinition> fields = new ArrayList<>();
private String deprecatedKey = "";
private boolean hidden = false;
@@ -552,15 +535,6 @@ public final class PropertyDefinition {
return this;
}
- /**
- * @deprecated since 6.1, as it was not used and too complex to maintain.
- */
- @Deprecated
- public Builder propertySetKey(String propertySetKey) {
- this.propertySetKey = propertySetKey;
- return this;
- }
-
public Builder fields(PropertyFieldDefinition first, PropertyFieldDefinition... rest) {
this.fields.add(first);
this.fields.addAll(asList(rest));