mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-04 11:23:50 +00:00
Problem localized in AbstractBearing (use of doubleToLongBits)
This commit is contained in:
1 parent
d3c659a1a5
commit
276278b07d
2 files changed
+11
-10
No files matched your search
+5
-5
@@ -48,10 +48,10 @@ public class PlacemarkImpl implements Placemark {
|
||||
public String getCountryCode() {
|
||||
return countryCode;
|
||||
}
|
||||
//
|
||||
// public Position getPosition() {
|
||||
// return position.getPosition();
|
||||
// }
|
||||
|
||||
public Position getPosition() {
|
||||
return position.getPosition();
|
||||
}
|
||||
|
||||
public long getPopulation() {
|
||||
return population;
|
||||
@@ -83,7 +83,7 @@ public class PlacemarkImpl implements Placemark {
|
||||
//
|
||||
// return b.toString();
|
||||
// }
|
||||
//
|
||||
|
||||
// @Override
|
||||
// public int hashCode() {
|
||||
// final int prime = 31;
|
||||
|
||||
+6
-5
@@ -18,7 +18,8 @@ public class SerializablePositionImpl implements SerializablePosition {
|
||||
|
||||
@Override
|
||||
public Position getPosition() {
|
||||
return new DegreePosition(latDeg, lngDeg);
|
||||
// return new DegreePosition(latDeg, lngDeg);
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -31,9 +32,9 @@ public class SerializablePositionImpl implements SerializablePosition {
|
||||
// final int prime = 31;
|
||||
// int result = 1;
|
||||
// long temp;
|
||||
// temp = Double.doubleToLongBits(latDeg);
|
||||
// temp = (int) latDeg;
|
||||
// result = prime * result + (int) (temp ^ (temp >>> 32));
|
||||
// temp = Double.doubleToLongBits(lngDeg);
|
||||
// temp = (int) latDeg;
|
||||
// result = prime * result + (int) (temp ^ (temp >>> 32));
|
||||
// return result;
|
||||
// }
|
||||
@@ -47,9 +48,9 @@ public class SerializablePositionImpl implements SerializablePosition {
|
||||
// if (getClass() != obj.getClass())
|
||||
// return false;
|
||||
// SerializablePositionImpl other = (SerializablePositionImpl) obj;
|
||||
// if (Double.doubleToLongBits(latDeg) != Double.doubleToLongBits(other.latDeg))
|
||||
// if (!new Double(latDeg).equals(other.latDeg))
|
||||
// return false;
|
||||
// if (Double.doubleToLongBits(lngDeg) != Double.doubleToLongBits(other.lngDeg))
|
||||
// if (!new Double(lngDeg).equals(other.lngDeg))
|
||||
// return false;
|
||||
// return true;
|
||||
// }
|
||||
|
||||
Reference in new issue
Block a user