diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2021-06-30 12:46:41 -0400 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-07-01 20:03:19 +0000 |
commit | 6269675771aff4cbe8f1e6fad52c7b9b322ec9ce (patch) | |
tree | 6e3f5332f76f8ffee0badea9a31fed36e62ccb3f /sonar-plugin-api/src/main/java/org/sonar/api | |
parent | 508bb14dd056120e20f10001b420345fe3a63d7d (diff) | |
download | sonarqube-6269675771aff4cbe8f1e6fad52c7b9b322ec9ce.tar.gz sonarqube-6269675771aff4cbe8f1e6fad52c7b9b322ec9ce.zip |
SONAR-14833 Order of fields in SMTP settings is not ideal
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar/api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/config/EmailSettings.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/config/EmailSettings.java b/sonar-plugin-api/src/main/java/org/sonar/api/config/EmailSettings.java index 6bc7754873f..3452a4e213b 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/config/EmailSettings.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/config/EmailSettings.java @@ -113,6 +113,7 @@ public class EmailSettings { .defaultValue(SMTP_HOST_DEFAULT) .category(CATEGORY_GENERAL) .subCategory(SUBCATEGORY_EMAIL) + .index(0) .build(), PropertyDefinition.builder(SMTP_PORT) .name("SMTP port") @@ -121,6 +122,7 @@ public class EmailSettings { .category(CATEGORY_GENERAL) .subCategory(SUBCATEGORY_EMAIL) .type(INTEGER) + .index(1) .build(), PropertyDefinition.builder(SMTP_SECURE_CONNECTION) .name("Secure connection") @@ -130,6 +132,7 @@ public class EmailSettings { .subCategory(SUBCATEGORY_EMAIL) .type(SINGLE_SELECT_LIST) .options("ssl", "starttls") + .index(2) .build(), PropertyDefinition.builder(SMTP_USERNAME) .name("SMTP username") @@ -137,6 +140,7 @@ public class EmailSettings { .defaultValue(SMTP_USERNAME_DEFAULT) .category(CATEGORY_GENERAL) .subCategory(SUBCATEGORY_EMAIL) + .index(3) .build(), PropertyDefinition.builder(SMTP_PASSWORD) .name("SMTP password") @@ -145,6 +149,7 @@ public class EmailSettings { .type(PropertyType.PASSWORD) .category(CATEGORY_GENERAL) .subCategory(SUBCATEGORY_EMAIL) + .index(4) .build(), PropertyDefinition.builder(FROM) .name("From address") @@ -152,6 +157,7 @@ public class EmailSettings { .defaultValue(FROM_DEFAULT) .category(CATEGORY_GENERAL) .subCategory(SUBCATEGORY_EMAIL) + .index(5) .build(), PropertyDefinition.builder(FROM_NAME) .name("From name") @@ -159,6 +165,7 @@ public class EmailSettings { .defaultValue(FROM_NAME_DEFAULT) .category(CATEGORY_GENERAL) .subCategory(SUBCATEGORY_EMAIL) + .index(6) .build(), PropertyDefinition.builder(PREFIX) .name("Email prefix") @@ -166,6 +173,7 @@ public class EmailSettings { .defaultValue(PREFIX_DEFAULT) .category(CATEGORY_GENERAL) .subCategory(SUBCATEGORY_EMAIL) + .index(7) .build()); } } |