File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
src/main/java/com/osrm/client Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ dependencies {
1717 // compile 'org.apache.httpcomponents:httpclient:4.5.2'
1818 compile ' com.squareup.okhttp3:okhttp:3.12.0'
1919 compile group : ' com.google.code.gson' , name : ' gson' , version : ' 2.7'
20+ implementation ' com.google.guava:guava:28.1-jre'
2021
2122 testCompile group : ' junit' , name : ' junit' , version : ' 4.12'
2223}
Original file line number Diff line number Diff line change 11package com .osrm .client ;
22
3+ import com .google .common .base .Objects ;
4+
35public class GeoLocation {
46 private final Double latitude ;
57 private final Double longitude ;
@@ -23,7 +25,7 @@ public String getLatLongString() {
2325
2426 @ Override
2527 public int hashCode () {
26- return latitude .hashCode () + longitude . hashCode ( );
28+ return Objects .hashCode (this . getLatitude (), this . getLongitude () );
2729 }
2830
2931 @ Override
You can’t perform that action at this time.
0 commit comments