Skip to content
Browse files

Fix LatLng equality to return false when classes are different

  • Loading branch information...
1 parent 822ee03 commit a96b3dbe26cfe9adea492942a189e88e0f8e4fa5 Metromile Contributions committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 MapboxAndroidSDK/src/main/java/com/mapbox/mapboxsdk/geometry/LatLng.java
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;

0 comments on commit a96b3db

Please sign in to comment.
Something went wrong with that request. Please try again.