*/
package org.sonar.batch.scan.language;
-import com.google.common.collect.Lists;
+import com.google.common.collect.Sets;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.sonar.api.CoreProperties;
import org.sonar.api.utils.MessageException;
import java.util.Collection;
-import java.util.List;
+import java.util.Set;
/**
* Give access to all languages detected on the current module
private static final Logger LOG = LoggerFactory.getLogger(DefaultModuleLanguages.class);
- private final List<String> moduleLanguages = Lists.newArrayList();
+ private final Set<String> moduleLanguages = Sets.newTreeSet();
public DefaultModuleLanguages(Settings settings, Languages languages) {
if (settings.hasKey(CoreProperties.PROJECT_LANGUAGE_PROPERTY)) {