diff options
author | Godin <mandrikov@gmail.com> | 2010-11-23 21:48:08 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-11-23 21:48:08 +0000 |
commit | b603701f4475d1b0b2728dedbe61cb8133eac1cf (patch) | |
tree | 0808df909ddefbe43b4daccd4935619301095ceb /sonar-plugin-api | |
parent | 894ce598de301b77a3785a5cf0c58190f9d2d3e1 (diff) | |
download | sonarqube-b603701f4475d1b0b2728dedbe61cb8133eac1cf.tar.gz sonarqube-b603701f4475d1b0b2728dedbe61cb8133eac1cf.zip |
SONAR-1556: When a language is specified with the 'sonar.language' property but not supported, a clear message must be displayed
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/resources/Languages.java | 13 |
1 files changed, 8 insertions, 5 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 372100fe4ae..9908252d11e 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 @@ -19,15 +19,19 @@ */ package org.sonar.api.resources; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + import org.apache.commons.lang.ArrayUtils; import org.sonar.api.BatchComponent; import org.sonar.api.ServerComponent; -import java.util.*; - /** * A class to store the list of languages - * + * * @since 1.10 */ public class Languages implements BatchComponent, ServerComponent { @@ -47,9 +51,8 @@ public class Languages implements BatchComponent, ServerComponent { /** * @param keys the languages keys - * @return * @return the list of suffix files associates to languages included in the current object + * @return the list of suffix files associates to languages included in the current object */ - public String[] getSuffixes(String... keys) { List<String> suffixes = new ArrayList<String>(); |