diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-11-07 22:58:12 +0100 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-11-07 22:58:12 +0100 |
commit | 2d37e6afa362160ffcdecc31c36855ba4ab060d0 (patch) | |
tree | 39732513425582781dda85a695a88c368a74daa8 /sonar-plugin-api | |
parent | 78bb7e03936055a93419f9284aab475955d46960 (diff) | |
download | sonarqube-2d37e6afa362160ffcdecc31c36855ba4ab060d0.tar.gz sonarqube-2d37e6afa362160ffcdecc31c36855ba4ab060d0.zip |
fix violations
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/measures/RuleMeasure.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/measures/RuleMeasure.java b/sonar-plugin-api/src/main/java/org/sonar/api/measures/RuleMeasure.java index c3ca678e7e2..99b9ebac7e9 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/measures/RuleMeasure.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/measures/RuleMeasure.java @@ -76,7 +76,11 @@ public class RuleMeasure extends Measure { @Override public boolean equals(Object obj) { - if (!(obj.getClass().equals(RuleMeasure.class))) { + if (obj == null) { + return false; + } + if (!(obj.getClass().equals(RuleMeasure.class))) {//NOSONAR should be refactored but kept in the current state + // for the moment. return false; } if (this == obj) { |