Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
NaN lint cleanup.
  • Loading branch information
soleger committed Apr 28, 2014
1 parent c46d6d3 commit 4c98ef3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -173,7 +173,7 @@ public String getMaintContract() {

public Coordinates getCoordinates() {
final LatLng latLng = this.getLatLng();
if (latLng == null || latLng.lat() == Double.NaN || latLng.lng() == Double.NaN) {
if (latLng == null || Double.isNaN(latLng.lat()) || Double.isNaN(latLng.lng())) {
return null;
}
return new Coordinates(Double.valueOf(latLng.lng()).floatValue(), Double.valueOf(latLng.lat()).floatValue());
Expand Down

0 comments on commit 4c98ef3

Please sign in to comment.