aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2016-09-14 11:23:07 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2016-09-15 15:46:05 +0200
commit7bd8d78f627a4e0fde6fc4a1528360b8db8ef351 (patch)
tree5257b588cdcdca313dd8cdb51d826f61edbc8ae6 /sonar-plugin-api
parent36ffb8e21518371688f86ce1271a09bea03108a2 (diff)
downloadsonarqube-7bd8d78f627a4e0fde6fc4a1528360b8db8ef351.tar.gz
sonarqube-7bd8d78f627a4e0fde6fc4a1528360b8db8ef351.zip
SONAR-8024 Deprecate PropertyFieldDefinition#indicativeSize
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/PropertyField.java3
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyFieldDefinition.java16
2 files changed, 14 insertions, 5 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/PropertyField.java b/sonar-plugin-api/src/main/java/org/sonar/api/PropertyField.java
index bd906a7c273..c4c01ec56c7 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/PropertyField.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/PropertyField.java
@@ -55,7 +55,10 @@ public @interface PropertyField {
/**
* Indicative size of the field value in characters. This size is not validated, it is merely used by the GUI
* to size the different input fields of a property set.
+ *
+ * @deprecated since 6.1, as it was only used for UI.
*/
+ @Deprecated
int indicativeSize() default 20;
PropertyType type() default PropertyType.STRING;
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyFieldDefinition.java b/sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyFieldDefinition.java
index 993475a94c9..1a00bde14fe 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyFieldDefinition.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyFieldDefinition.java
@@ -22,13 +22,11 @@ package org.sonar.api.config;
import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableList;
-import org.sonar.api.PropertyField;
-import org.sonar.api.PropertyType;
-
-import javax.annotation.Nullable;
-
import java.util.ArrayList;
import java.util.List;
+import javax.annotation.Nullable;
+import org.sonar.api.PropertyField;
+import org.sonar.api.PropertyType;
/**
* @since 3.3
@@ -81,6 +79,10 @@ public final class PropertyFieldDefinition {
return description;
}
+ /**
+ * @deprecated since 6.1, as it was only used for UI.
+ */
+ @Deprecated
public int indicativeSize() {
return indicativeSize;
}
@@ -124,6 +126,10 @@ public final class PropertyFieldDefinition {
return this;
}
+ /**
+ * @deprecated since 6.1, as it was only used for UI.
+ */
+ @Deprecated
public Builder indicativeSize(int indicativeSize) {
this.indicativeSize = indicativeSize;
return this;