diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2012-02-24 11:31:18 +0100 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2012-02-24 11:31:18 +0100 |
commit | 8924291b6d2fc829e5432d41ad998bed0ad4a89a (patch) | |
tree | 13e57f1f8071612fe8820f007238f24e6b127c96 /sonar-plugin-api | |
parent | 110cec7b08bee73b675a4f136fd6bedb2a1007ec (diff) | |
download | sonarqube-8924291b6d2fc829e5432d41ad998bed0ad4a89a.tar.gz sonarqube-8924291b6d2fc829e5432d41ad998bed0ad4a89a.zip |
Fix some quality flaws
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/resources/AbstractLanguage.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/AbstractLanguage.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/AbstractLanguage.java index f8b817e5bce..0370894e471 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/AbstractLanguage.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/AbstractLanguage.java @@ -19,6 +19,8 @@ */ package org.sonar.api.resources; +import java.util.Locale; + /** * Inherit this class to define a new language like PLSQL, PHP or C# * @@ -42,7 +44,7 @@ public abstract class AbstractLanguage implements Language { * @param name the display name of the language in the interface */ public AbstractLanguage(String key, String name) { - this.key = key.toLowerCase(); + this.key = key.toLowerCase(Locale.ENGLISH); this.name = name; } |