Changeset 35341 in osm for applications/viewer


Ignore:
Timestamp:
2020-02-29T13:37:33+01:00 (5 years ago)
Author:
donvip
Message:

add missing Serializable interfaces

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  
    66import java.io.ObjectInputStream;
    77import java.io.ObjectOutputStream;
     8import java.io.Serializable;
    89import java.util.Objects;
    910
     
    1718 *
    1819 */
    19 public class Coordinate implements ICoordinate {
     20public class Coordinate implements ICoordinate, Serializable {
     21    private static final long serialVersionUID = 1L;
    2022    private transient Point2D.Double data;
    2123
     
    7476        if (this == obj)
    7577            return true;
    76         if (obj == null || !(obj instanceof Coordinate))
     78        if (!(obj instanceof Coordinate))
    7779            return false;
    7880        final Coordinate other = (Coordinate) obj;
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/Projected.java

    r34616 r35341  
    66import java.io.ObjectInputStream;
    77import java.io.ObjectOutputStream;
     8import java.io.Serializable;
    89import java.util.Objects;
    910
     
    1314 * Projected coordinates represented by an encapsulates a Point2D.Double value.
    1415 */
    15 public class Projected implements IProjected {
     16public class Projected implements IProjected, Serializable {
     17    private static final long serialVersionUID = 1L;
    1618    private transient Point2D.Double data;
    1719
     
    6062        if (this == obj)
    6163            return true;
    62         if (obj == null || !(obj instanceof Projected))
     64        if (!(obj instanceof Projected))
    6365            return false;
    6466        final Projected other = (Projected) obj;
Note: See TracChangeset for help on using the changeset viewer.