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 12:02:00 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-02-23 12:02:00 +0100
commitc43ee4857c97e583433997678ddaebeb7ec68722 (patch)
treebf6b55758b269db80629c6098f0a094d72dddbab /sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleParam.java
parent3c5fec7277657389960231c8ee650256028a1d7a (diff)
downloadsonarqube-c43ee4857c97e583433997678ddaebeb7ec68722.tar.gz
sonarqube-c43ee4857c97e583433997678ddaebeb7ec68722.zip
Revert "Add missing null check on equals"
This reverts commit 3c5fec7277657389960231c8ee650256028a1d7a.
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.java10
1 files changed, 4 insertions, 6 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 770e212975c..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
@@ -19,8 +19,6 @@
*/
package org.sonar.api.rules;
-import javax.annotation.Nullable;
-
public class ActiveRuleParam implements Cloneable {
private Integer id;
@@ -105,13 +103,13 @@ public class ActiveRuleParam implements Cloneable {
}
@Override
- public boolean equals(@Nullable Object obj) {
- if (obj == null || this.getClass() != obj.getClass()) {
- return false;
- }
+ public boolean equals(Object obj) {
if (this == obj) {
return true;
}
+ if (this.getClass() != obj.getClass()) {
+ return false;
+ }
ActiveRuleParam other = (ActiveRuleParam) obj;
return other.getKey().equals(getKey());
}