aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2012-02-24 11:31:18 +0100
committersimonbrandhof <simon.brandhof@gmail.com>2012-02-24 11:31:18 +0100
commit8924291b6d2fc829e5432d41ad998bed0ad4a89a (patch)
tree13e57f1f8071612fe8820f007238f24e6b127c96 /sonar-plugin-api
parent110cec7b08bee73b675a4f136fd6bedb2a1007ec (diff)
downloadsonarqube-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.java4
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;
}