aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2014-01-27 12:16:42 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2014-01-27 12:17:52 +0100
commit19aa4b81f42f8f6dd3a5ad55bd9e148108716098 (patch)
tree23068b8231ded830f4a0330ae43ccd1e7f104d23
parent83c5fcd8ce7f09d88182df602fc0483aa357cd0b (diff)
downloadsonarqube-19aa4b81f42f8f6dd3a5ad55bd9e148108716098.tar.gz
sonarqube-19aa4b81f42f8f6dd3a5ad55bd9e148108716098.zip
SONAR-926 fix RulesProfile#getLanguage() on single-lang modules
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/rule/RulesProfileWrapper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/rule/RulesProfileWrapper.java b/sonar-batch/src/main/java/org/sonar/batch/rule/RulesProfileWrapper.java
index ffa23f300a0..7011138d931 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/rule/RulesProfileWrapper.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/rule/RulesProfileWrapper.java
@@ -80,7 +80,7 @@ public class RulesProfileWrapper extends RulesProfile {
LOG.debug("Please update your plugin to support multi-language analysis", new SonarException("Please update your plugin to support multi-language analysis"));
return "";
}
- return singleLanguageProfile.getName();
+ return singleLanguageProfile.getLanguage();
}
public RulesProfile getProfileByLanguage(String languageKey) {