]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8024 Deprecate PropertyFieldDefinition#indicativeSize
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 14 Sep 2016 09:23:07 +0000 (11:23 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 15 Sep 2016 13:46:05 +0000 (15:46 +0200)
sonar-plugin-api/src/main/java/org/sonar/api/PropertyField.java
sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyFieldDefinition.java

index bd906a7c2731a27f82c5ecbbde896b4f947674fd..c4c01ec56c72a85e3b3e0d1b7021ab4e294b697a 100644 (file)
@@ -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;
index 993475a94c9d56efdf9abadf727211a1f62b1f99..1a00bde14fe2aac07153fc7e1ad944c1aed157b8 100644 (file)
@@ -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;