summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2013-12-06 12:40:22 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2013-12-09 12:11:07 +0100
commit08d7114983c85adff9a4523bf751dc8e3ef8ab5d (patch)
treeb97ab95054ba0ef87926a898332c96d546ae2b6d
parent0b9b9430a3f0a500eebd2fabd7a910206e5dd3a9 (diff)
downloadsonarqube-08d7114983c85adff9a4523bf751dc8e3ef8ab5d.tar.gz
sonarqube-08d7114983c85adff9a4523bf751dc8e3ef8ab5d.zip
Fix some quality flaw
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/technicaldebt/batch/internal/DefaultRequirementTest.java7
-rw-r--r--sonar-server/src/main/java/org/sonar/server/ui/JRubyI18n.java1
2 files changed, 7 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/technicaldebt/batch/internal/DefaultRequirementTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/technicaldebt/batch/internal/DefaultRequirementTest.java
index 2c61e2b3ae9..3c8c246165f 100644
--- a/sonar-plugin-api/src/test/java/org/sonar/api/technicaldebt/batch/internal/DefaultRequirementTest.java
+++ b/sonar-plugin-api/src/test/java/org/sonar/api/technicaldebt/batch/internal/DefaultRequirementTest.java
@@ -73,6 +73,13 @@ public class DefaultRequirementTest {
.isEqualTo(new DefaultRequirement().setRuleKey(RuleKey.of("repo", "rule")).setCharacteristic(characteristic));
assertThat(new DefaultRequirement().setRuleKey(RuleKey.of("repo", "rule")).setCharacteristic(characteristic))
.isNotEqualTo(new DefaultRequirement().setRuleKey(RuleKey.of("repo2", "rule2")).setCharacteristic(characteristic));
+
+ assertThat(new DefaultRequirement().setRuleKey(RuleKey.of("repo", "rule")).setCharacteristic(characteristic))
+ .isNotEqualTo(new DefaultRequirement().setRuleKey(RuleKey.of("repo", "rule")).setCharacteristic(
+ new DefaultCharacteristic()
+ .setId(2)
+ .setKey("REUSABILITY")));
+
}
@Test
diff --git a/sonar-server/src/main/java/org/sonar/server/ui/JRubyI18n.java b/sonar-server/src/main/java/org/sonar/server/ui/JRubyI18n.java
index 63bb8b30309..e7f5e260d09 100644
--- a/sonar-server/src/main/java/org/sonar/server/ui/JRubyI18n.java
+++ b/sonar-server/src/main/java/org/sonar/server/ui/JRubyI18n.java
@@ -24,7 +24,6 @@ import org.apache.commons.lang.StringUtils;
import org.sonar.api.ServerComponent;
import org.sonar.api.i18n.I18n;
import org.sonar.core.i18n.GwtI18n;
-import org.sonar.core.i18n.RuleI18nManager;
import javax.annotation.Nullable;