From 6269675771aff4cbe8f1e6fad52c7b9b322ec9ce Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Wed, 30 Jun 2021 12:46:41 -0400 Subject: SONAR-14833 Order of fields in SMTP settings is not ideal --- .../src/main/java/org/sonar/api/config/EmailSettings.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sonar-plugin-api/src/main/java/org/sonar/api') 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()); } } -- cgit v1.2.3