aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/resources/Languages.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Languages.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/Languages.java
index 96dd3701751..47d667db493 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Languages.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/Languages.java
@@ -21,6 +21,8 @@ package org.sonar.api.resources;
import com.google.common.collect.Maps;
import org.apache.commons.lang.ArrayUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.sonar.api.BatchComponent;
import org.sonar.api.ServerComponent;
@@ -37,14 +39,18 @@ import java.util.Set;
*/
public class Languages implements BatchComponent, ServerComponent {
+ private static final Logger LOG = LoggerFactory.getLogger(Languages.class);
+
private final Map<String, Language> map = Maps.newLinkedHashMap();
/**
* Creates a list of languages
*/
public Languages(Language... languages) {
+ LOG.debug("Available languages:");
for (Language language : languages) {
map.put(language.getKey(), language);
+ LOG.debug(" * " + language.getName() + " => \"" + language.getKey() + "\"");
}
}
@@ -52,6 +58,7 @@ public class Languages implements BatchComponent, ServerComponent {
* No languages are installed
*/
public Languages() {
+ LOG.debug("No language available");
}
/**