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/src/org/openstreetmap/josm/actions/AlignInCircleAction.java

    r18615 r19078  
    22package org.openstreetmap.josm.actions;
    33
     4import static java.util.function.Predicate.not;
    45import static org.openstreetmap.josm.gui.help.HelpUtil.ht;
    56import static org.openstreetmap.josm.tools.I18n.tr;
     
    272273        fixNodes.addAll(collectNodesWithExternReferrers(ways));
    273274
    274         // Check if one or more nodes are outside of download area
    275         if (nodes.stream().anyMatch(Node::isOutsideDownloadArea))
    276             throw new InvalidSelection(tr("One or more nodes involved in this action is outside of the downloaded area."));
     275        // Check if one or more nodes does not have all parents available
     276        if (nodes.stream().anyMatch(not(Node::isReferrersDownloaded)))
     277            throw new InvalidSelection(tr("One or more nodes involved in this action may have additional referrers."));
    277278
    278279
Note: See TracChangeset for help on using the changeset viewer.