aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleParam.java
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-02-23 09:50:27 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-02-23 10:43:33 +0100
commit7efdaa4a6e4f2ce8cbcc024e74407ccb13a413d3 (patch)
treebf6b55758b269db80629c6098f0a094d72dddbab /sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleParam.java
parentea5a39cadb0f8acf8a95f26b6d9392a9115d4818 (diff)
downloadsonarqube-7efdaa4a6e4f2ce8cbcc024e74407ccb13a413d3.tar.gz
sonarqube-7efdaa4a6e4f2ce8cbcc024e74407ccb13a413d3.zip
Fix quality flaws
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleParam.java')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleParam.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleParam.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleParam.java
index 683f52cde43..7f83179429f 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleParam.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleParam.java
@@ -104,12 +104,12 @@ public class ActiveRuleParam implements Cloneable {
@Override
public boolean equals(Object obj) {
- if (!(obj instanceof ActiveRuleParam)) {
- return false;
- }
if (this == obj) {
return true;
}
+ if (this.getClass() != obj.getClass()) {
+ return false;
+ }
ActiveRuleParam other = (ActiveRuleParam) obj;
return other.getKey().equals(getKey());
}