Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
DATASOLR-29 - update allowed dependencies in sonargraph
Browse files Browse the repository at this point in the history
remove generated equals / hashCode from GeoLocation.
  • Loading branch information
christophstrobl committed Dec 3, 2012
1 parent c1ea4ff commit 0c40cb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 30 deletions.
5 changes: 3 additions & 2 deletions Spring Data Solr.sonargraph
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<context version="7.1.7.187">
<context version="7.1.8.189">
<scope name="spring-data-solr" type="Project">
<element name="Filter" type="TypeFilterReferenceOverridden">
<element name="org.springframework.data.solr.**" type="IncludeTypePattern"/>
Expand Down Expand Up @@ -51,6 +51,7 @@
<element name="**.mapping.**" type="IncludeTypePattern"/>
<element name="**.convert.**" type="IncludeTypePattern"/>
</element>
<dependency type="AllowedDependency" toName="Project|spring-data-solr::Layer|Core::Subsystem|Query"/>
</element>
<element name="Geospatial" type="Subsystem">
<element name="Assignment" type="TypeFilter">
Expand All @@ -62,13 +63,13 @@
<element name="**.query.**" type="IncludeTypePattern"/>
</element>
<dependency type="AllowedDependency" toName="Project|spring-data-solr::Layer|Core::Subsystem|Geospatial"/>
<dependency type="AllowedDependency" toName="Project|spring-data-solr::Layer|Core::Subsystem|Mapping"/>
</element>
<element name="Core" type="Subsystem">
<element name="Assignment" type="TypeFilter">
<element name="**.core.**" type="WeakTypePattern"/>
<element name="**.solr.*" type="StrongTypePattern"/>
</element>
<dependency type="AllowedDependency" toName="Project|spring-data-solr::Layer|Core::Subsystem|Geospatial"/>
<dependency type="AllowedDependency" toName="Project|spring-data-solr::Layer|Core::Subsystem|Mapping"/>
<dependency type="AllowedDependency" toName="Project|spring-data-solr::Layer|Core::Subsystem|Query"/>
</element>
Expand Down
Expand Up @@ -44,32 +44,4 @@ public void setLatitude(double latitude) {
this.latitude = latitude;
}

@Override
public int hashCode() {
final int prime = 31;
int result = 1;
long temp;
temp = Double.doubleToLongBits(latitude);
result = prime * result + (int) (temp ^ (temp >>> 32));
temp = Double.doubleToLongBits(longitude);
result = prime * result + (int) (temp ^ (temp >>> 32));
return result;
}

@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
GeoLocation other = (GeoLocation) obj;
if (Double.doubleToLongBits(latitude) != Double.doubleToLongBits(other.latitude))
return false;
if (Double.doubleToLongBits(longitude) != Double.doubleToLongBits(other.longitude))
return false;
return true;
}

}

0 comments on commit 0c40cb2

Please sign in to comment.