We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method equals is:
public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final DMSLatLonPoint pt = (DMSLatLonPoint) obj; return (pt.lat_isnegative == lat_isnegative && pt.lat_degrees == lat_degrees && pt.lat_minutes == lat_degrees && pt.lat_seconds == lat_seconds && pt.lon_isnegative == lon_isnegative && pt.lon_degrees == lon_degrees && pt.lon_minutes == lon_minutes && pt.lon_seconds == lon_seconds); }
The comparison for lat_minutes is wrong, should be:
public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final DMSLatLonPoint pt = (DMSLatLonPoint) obj; return (pt.lat_isnegative == lat_isnegative && pt.lat_degrees == lat_degrees && pt.lat_minutes == lat_minutes && pt.lat_seconds == lat_seconds && pt.lon_isnegative == lon_isnegative && pt.lon_degrees == lon_degrees && pt.lon_minutes == lon_minutes && pt.lon_seconds == lon_seconds); }
The text was updated successfully, but these errors were encountered:
Thanks for the fix!
On Dec 21, 2015, at 12:41 PM, JFLecomte notifications@github.com wrote: Method equals is: public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != objgetClass()) { return false; } final DMSLatLonPoint pt = (DMSLatLonPoint) obj; return (ptlat_isnegative == lat_isnegative && ptlat_degrees == lat_degrees && ptlat_minutes == lat_degrees && ptlat_seconds == lat_seconds && ptlon_isnegative == lon_isnegative && ptlon_degrees == lon_degrees && ptlon_minutes == lon_minutes && ptlon_seconds == lon_seconds); } The comparison for lat_minutes is wrong, should be: public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != objgetClass()) { return false; } final DMSLatLonPoint pt = (DMSLatLonPoint) obj; return (ptlat_isnegative == lat_isnegative && ptlat_degrees == lat_degrees && ptlat_minutes == lat_minutes && ptlat_seconds == lat_seconds && ptlon_isnegative == lon_isnegative && ptlon_degrees == lon_degrees && ptlon_minutes == lon_minutes && ptlon_seconds == lon_seconds); } — Reply to this email directly or view it on GitHub #16.
On Dec 21, 2015, at 12:41 PM, JFLecomte notifications@github.com wrote:
public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != objgetClass()) { return false; } final DMSLatLonPoint pt = (DMSLatLonPoint) obj; return (ptlat_isnegative == lat_isnegative && ptlat_degrees == lat_degrees && ptlat_minutes == lat_degrees && ptlat_seconds == lat_seconds && ptlon_isnegative == lon_isnegative && ptlon_degrees == lon_degrees && ptlon_minutes == lon_minutes && ptlon_seconds == lon_seconds); }
public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != objgetClass()) { return false; } final DMSLatLonPoint pt = (DMSLatLonPoint) obj; return (ptlat_isnegative == lat_isnegative && ptlat_degrees == lat_degrees && ptlat_minutes == lat_minutes && ptlat_seconds == lat_seconds && ptlon_isnegative == lon_isnegative && ptlon_degrees == lon_degrees && ptlon_minutes == lon_minutes && ptlon_seconds == lon_seconds); }
— Reply to this email directly or view it on GitHub #16.
Sorry, something went wrong.
No branches or pull requests
Method equals is:
The comparison for lat_minutes is wrong, should be:
The text was updated successfully, but these errors were encountered: