Ignore:
Timestamp:
2024-05-13T20:34:55+02:00 (4 months ago)
Author:
taylor.smock
Message:

Fix #4142: Track fully downloaded objects (patch by stoecker, GerdP, and myself)

The serialization move from PrimitiveData to AbstractPrimitive should be
reverted prior to 24.05 (see #23677).

The serialization move was required since we want to ensure that all downstream
users of AbstractPrimitive were not using the flags field, which was done by
making the field private instead of protected. They may still be using that
field (via updateFlags) which would not be caught by compile-time or runtime
errors.

Additionally, a good chunk of common functionality was moved up from
OsmPrimitive, even though much of it wasn't useful for PrimitiveData.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/command/CommandTest.java

    r19050 r19078  
    9090            node.setCoor(LatLon.ZERO);
    9191            node.put("existing", "existing");
     92            node.setReferrersDownloaded(true);
    9293            layer.data.addPrimitive(node);
    9394            return node;
     
    105106            way.setNodes(Arrays.asList(nodes));
    106107            way.put("existing", "existing");
     108            way.setReferrersDownloaded(true);
    107109            layer.data.addPrimitive(way);
    108110            return way;
     
    121123            }
    122124            relation.put("existing", "existing");
     125            relation.setReferrersDownloaded(true);
    123126            layer.data.addPrimitive(relation);
    124127            return relation;
Note: See TracChangeset for help on using the changeset viewer.