Ticket #17177: 17177.binary_compat.patch
File 17177.binary_compat.patch, 1.1 KB (added by , 3 years ago) |
---|
-
src/org/openstreetmap/josm/data/osm/WaySegment.java
5 5 * A segment consisting of 2 consecutive nodes out of a way. 6 6 */ 7 7 public 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; 8 15 9 16 /** 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 /** 10 25 * Constructs a new {@code IWaySegment}. 11 26 * 12 27 * @param way The way … … 15 30 */ 16 31 public WaySegment(Way way, int i) { 17 32 super(way, i); 33 this.way = super.way; 34 this.lowerIndex = super.lowerIndex; 18 35 } 19 36 20 37 /**