Changeset 9891 in josm for trunk/src/org
- Timestamp:
- 2016-02-27T19:30:02+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/NodeData.java
r8510 r9891 9 9 public class NodeData extends PrimitiveData implements INode { 10 10 11 private static final long serialVersionUID = 5626323599550908773L; 11 12 /* 12 13 * we "inline" lat/lon coordinates instead of using a LatLon => reduces memory footprint -
trunk/src/org/openstreetmap/josm/data/osm/PrimitiveData.java
r8510 r9891 2 2 package org.openstreetmap.josm.data.osm; 3 3 4 import java.io.Serializable; 4 5 import java.util.ArrayList; 5 6 import java.util.Arrays; … … 15 16 * reported by events 16 17 */ 17 public abstract class PrimitiveData extends AbstractPrimitive { 18 public abstract class PrimitiveData extends AbstractPrimitive implements Serializable { 19 20 private static final long serialVersionUID = -1044837092478109138L; 18 21 19 22 /** -
trunk/src/org/openstreetmap/josm/data/osm/RelationData.java
r8415 r9891 9 9 public class RelationData extends PrimitiveData implements IRelation { 10 10 11 private static final long serialVersionUID = 1163664954890478565L; 11 12 private List<RelationMemberData> members = new ArrayList<>(); 12 13 -
trunk/src/org/openstreetmap/josm/data/osm/RelationMemberData.java
r9371 r9891 2 2 package org.openstreetmap.josm.data.osm; 3 3 4 import java.io.Serializable; 4 5 import java.util.Objects; 5 6 6 public class RelationMemberData implements PrimitiveId {7 public class RelationMemberData implements PrimitiveId, Serializable { 7 8 9 private static final long serialVersionUID = 381392198209333319L; 8 10 private final String role; 9 11 private final long memberId; -
trunk/src/org/openstreetmap/josm/data/osm/WayData.java
r8415 r9891 9 9 public class WayData extends PrimitiveData implements IWay { 10 10 11 private static final long serialVersionUID = 106944939313286415L; 11 12 private List<Long> nodes = new ArrayList<>(); 12 13 -
trunk/src/org/openstreetmap/josm/gui/datatransfer/PrimitiveTransferable.java
r9711 r9891 5 5 import java.awt.datatransfer.Transferable; 6 6 import java.awt.datatransfer.UnsupportedFlavorException; 7 import java.io.Serializable; 7 8 import java.util.ArrayList; 8 9 import java.util.Collection; … … 11 12 import org.openstreetmap.josm.data.osm.PrimitiveData; 12 13 import org.openstreetmap.josm.gui.DefaultNameFormatter; 14 import org.openstreetmap.josm.tools.CheckParameterUtil; 13 15 14 16 /** … … 21 23 * A wrapper for a collection of {@link PrimitiveData}. 22 24 */ 23 public static final class Data { 25 public static final class Data implements Serializable { 26 private static final long serialVersionUID = -1485089993600213704L; 24 27 private final Collection<PrimitiveData> primitiveData; 25 28 26 29 private Data(Collection<PrimitiveData> primitiveData) { 30 CheckParameterUtil.ensureThat(primitiveData instanceof Serializable, "primitiveData must be instanceof Serializable"); 27 31 this.primitiveData = primitiveData; 28 32 } -
trunk/src/org/openstreetmap/josm/gui/datatransfer/RelationMemberTransferable.java
r9711 r9891 5 5 import java.awt.datatransfer.Transferable; 6 6 import java.awt.datatransfer.UnsupportedFlavorException; 7 import java.io.Serializable; 7 8 import java.util.ArrayList; 8 9 import java.util.Collection; … … 11 12 import org.openstreetmap.josm.data.osm.RelationMemberData; 12 13 import org.openstreetmap.josm.gui.DefaultNameFormatter; 14 import org.openstreetmap.josm.tools.CheckParameterUtil; 13 15 14 16 /** … … 21 23 * A wrapper for a collection of {@link RelationMemberData}. 22 24 */ 23 public static final class Data { 25 public static final class Data implements Serializable { 26 private static final long serialVersionUID = -8432393711635811029L; 24 27 private final Collection<RelationMemberData> relationMemberDatas; 25 28 26 29 private Data(Collection<RelationMemberData> primitiveData) { 30 CheckParameterUtil.ensureThat(primitiveData instanceof Serializable, "primitiveData must be instanceof Serializable"); 27 31 this.relationMemberDatas = primitiveData; 28 32 }
Note:
See TracChangeset
for help on using the changeset viewer.