diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-07-01 23:22:14 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-07-01 23:22:14 +0200 |
commit | 741384c532587cc786937415ab8fe574ab852b27 (patch) | |
tree | d3058f16fc6d5c3e2c192c5e7e7e61ea408245e7 /sonar-batch | |
parent | 71d081723ed915d183403375cb384a0e488b52d1 (diff) | |
download | sonarqube-741384c532587cc786937415ab8fe574ab852b27.tar.gz sonarqube-741384c532587cc786937415ab8fe574ab852b27.zip |
Fix some quality flaws
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/LanguageDetection.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/LanguageDetection.java b/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/LanguageDetection.java index fbfedb537b5..1ee5379f579 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/LanguageDetection.java +++ b/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/LanguageDetection.java @@ -66,7 +66,7 @@ class LanguageDetection { for (int i = 0; i < patterns.length; i++) { String suffix = patterns[i]; String extension = sanitizeExtension(suffix); - patterns[i] = "**/*." + extension; + patterns[i] = new StringBuilder().append("**/*.").append(extension).toString(); } PathPattern[] defaultLanguagePatterns = PathPattern.create(patterns); patternsByLanguage.put(language.key(), defaultLanguagePatterns); |