Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix LatLng equality to return false when classes are different #439

Merged
merged 1 commit into from

3 participants

@metromilecontrib

Fixed a typo that was causing equal LatLngs to not evaluate as equal.

@tmcw tmcw merged commit 136511b into from
@tmcw
Admin

:+1: thx!

@bleege
Admin

Just published a new 0.4.0-SNAPSHOT build a few minutes ago so your code should be live now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 19, 2014
  1. Fix LatLng equality to return false when classes are different

    Metromile Contributions authored
This page is out of date. Refresh to see the latest.
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;
Something went wrong with that request. Please try again.