Ticket #17177: 17177.binary_compat.patch

File 17177.binary_compat.patch, 1.1 KB (added by taylor.smock, 3 years ago)

Binary compatibility

  • src/org/openstreetmap/josm/data/osm/WaySegment.java

     
    55 * A segment consisting of 2 consecutive nodes out of a way.
    66 */
    77public final class WaySegment extends IWaySegment<Node, Way> {
     8   
     9    /**
     10     * The way (kept for binary compatibility)
     11     * @deprecated Use {@code IWaySegment.way} instead.
     12     */
     13    @Deprecated
     14    public final Way way;
    815
    916    /**
     17     * The index of one of the 2 nodes in the way. The other node has the
     18     * index {@code lowerIndex + 1}.
     19     * @deprecated Use {@code IWaySegment.lowerIndex} instead.
     20     */
     21    @Deprecated
     22    public final int lowerIndex;
     23
     24    /**
    1025     * Constructs a new {@code IWaySegment}.
    1126     *
    1227     * @param way The way
     
    1530     */
    1631    public WaySegment(Way way, int i) {
    1732        super(way, i);
     33        this.way = super.way;
     34        this.lowerIndex = super.lowerIndex;
    1835    }
    1936
    2037    /**