Changeset 35341 in osm for applications
- Timestamp:
- 2020-02-29T13:37:33+01:00 (5 years ago)
- Location:
- applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/Coordinate.java
r34616 r35341 6 6 import java.io.ObjectInputStream; 7 7 import java.io.ObjectOutputStream; 8 import java.io.Serializable; 8 9 import java.util.Objects; 9 10 … … 17 18 * 18 19 */ 19 public class Coordinate implements ICoordinate { 20 public class Coordinate implements ICoordinate, Serializable { 21 private static final long serialVersionUID = 1L; 20 22 private transient Point2D.Double data; 21 23 … … 74 76 if (this == obj) 75 77 return true; 76 if ( obj == null ||!(obj instanceof Coordinate))78 if (!(obj instanceof Coordinate)) 77 79 return false; 78 80 final Coordinate other = (Coordinate) obj; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/Projected.java
r34616 r35341 6 6 import java.io.ObjectInputStream; 7 7 import java.io.ObjectOutputStream; 8 import java.io.Serializable; 8 9 import java.util.Objects; 9 10 … … 13 14 * Projected coordinates represented by an encapsulates a Point2D.Double value. 14 15 */ 15 public class Projected implements IProjected { 16 public class Projected implements IProjected, Serializable { 17 private static final long serialVersionUID = 1L; 16 18 private transient Point2D.Double data; 17 19 … … 60 62 if (this == obj) 61 63 return true; 62 if ( obj == null ||!(obj instanceof Projected))64 if (!(obj instanceof Projected)) 63 65 return false; 64 66 final Projected other = (Projected) obj;
Note:
See TracChangeset
for help on using the changeset viewer.