aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2012-07-04 11:20:20 +0200
committerFabrice Bellingard <bellingard@gmail.com>2012-07-04 11:20:20 +0200
commit5ad5e21f77cb69707c610aef5fc62bdfd2e558c5 (patch)
tree3d90a1e91b15f6d3fedd8d2b24e85f71b1713678 /sonar-core
parent95bd81b84dbf58ee2a072eb1570ffc34d183c0b5 (diff)
downloadsonarqube-5ad5e21f77cb69707c610aef5fc62bdfd2e558c5.tar.gz
sonarqube-5ad5e21f77cb69707c610aef5fc62bdfd2e558c5.zip
Fix violations
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/resource/ResourceDto.java15
1 files changed, 10 insertions, 5 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/resource/ResourceDto.java b/sonar-core/src/main/java/org/sonar/core/resource/ResourceDto.java
index 193984ccbff..6eeeab179e1 100644
--- a/sonar-core/src/main/java/org/sonar/core/resource/ResourceDto.java
+++ b/sonar-core/src/main/java/org/sonar/core/resource/ResourceDto.java
@@ -102,18 +102,23 @@ public final class ResourceDto {
@Override
public boolean equals(Object obj) {
- if (this == obj)
+ if (this == obj) {
return true;
- if (obj == null)
+ }
+ if (obj == null) {
return false;
- if (getClass() != obj.getClass())
+ }
+ if (getClass() != obj.getClass()) {
return false;
+ }
ResourceDto other = (ResourceDto) obj;
if (id == null) {
- if (other.id != null)
+ if (other.id != null) {
return false;
- } else if (!id.equals(other.id))
+ }
+ } else if (!id.equals(other.id)) {
return false;
+ }
return true;
}