Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #439 from metromilecontrib/mb-pages

Fix LatLng equality to return false when classes are different
  • Loading branch information...
commit 136511b8e02586ea71c91acb642497041c016ce3 2 parents 822ee03 + a96b3db
@tmcw tmcw authored
View
2  MapboxAndroidSDK/src/main/java/com/mapbox/mapboxsdk/geometry/LatLng.java
@@ -98,7 +98,7 @@ public boolean equals(final Object obj) {
if (obj == this) {
return true;
}
- if (obj.getClass().equals(this.getClass())) {
+ if (!obj.getClass().equals(this.getClass())) {
return false;
}
final LatLng rhs = (LatLng) obj;
Please sign in to comment.
Something went wrong with that request. Please try again.