diff options
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/PropertyField.java | 3 | ||||
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyFieldDefinition.java | 16 |
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; |