aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorMichal Duda <michal.duda@sonarsource.com>2019-02-01 12:51:32 +0100
committerSonarTech <sonartech@sonarsource.com>2019-02-18 20:20:55 +0100
commit2b8cc73a602be586c15754f7d87242dbaa5ccfd7 (patch)
tree9e0a974b045fa96f97fed0ea2620ddccf4545743 /sonar-plugin-api
parente89a888d560520c69f01e45fc5c9649e76fba30d (diff)
downloadsonarqube-2b8cc73a602be586c15754f7d87242dbaa5ccfd7.tar.gz
sonarqube-2b8cc73a602be586c15754f7d87242dbaa5ccfd7.zip
SONARCLOUD-336: Automatically guess the projectKey/organization
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyDefinitions.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyDefinitions.java b/sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyDefinitions.java
index e805460f5cf..8eea31c6967 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyDefinitions.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/config/PropertyDefinitions.java
@@ -142,26 +142,26 @@ public final class PropertyDefinitions {
if (qualifier == null) {
// Special categories on global page
Map<SubCategory, Collection<PropertyDefinition>> emailSubCategories = new HashMap<>();
- emailSubCategories.put(new SubCategory("email", true), new ArrayList<PropertyDefinition>());
+ emailSubCategories.put(new SubCategory("email", true), new ArrayList<>());
byCategory.put(new Category(CoreProperties.CATEGORY_GENERAL, false), emailSubCategories);
HashMap<SubCategory, Collection<PropertyDefinition>> licenseSubCategories = new HashMap<>();
- licenseSubCategories.put(new SubCategory("server_id", true), new ArrayList<PropertyDefinition>());
+ licenseSubCategories.put(new SubCategory("server_id", true), new ArrayList<>());
byCategory.put(new Category(CoreProperties.CATEGORY_LICENSES, false), licenseSubCategories);
HashMap<SubCategory, Collection<PropertyDefinition>> encryptionSubCategories = new HashMap<>();
- encryptionSubCategories.put(new SubCategory("encryption", true), new ArrayList<PropertyDefinition>());
+ encryptionSubCategories.put(new SubCategory("encryption", true), new ArrayList<>());
byCategory.put(new Category(CoreProperties.CATEGORY_SECURITY, false), encryptionSubCategories);
}
for (PropertyDefinition definition : getAll()) {
if (qualifier == null ? definition.global() : definition.qualifiers().contains(qualifier)) {
Category category = categories.get(definition.key());
if (!byCategory.containsKey(category)) {
- byCategory.put(category, new HashMap<SubCategory, Collection<PropertyDefinition>>());
+ byCategory.put(category, new HashMap<>());
}
SubCategory subCategory = subcategories.get(definition.key());
if (!byCategory.get(category).containsKey(subCategory)) {
- byCategory.get(category).put(subCategory, new ArrayList<PropertyDefinition>());
+ byCategory.get(category).put(subCategory, new ArrayList<>());
}
byCategory.get(category).get(subCategory).add(definition);
}