Changeset 17897 in josm for trunk/src/org


Ignore:
Timestamp:
2021-05-17T19:44:55+02:00 (3 years ago)
Author:
simon04
Message:

see #17177 - WaySegment: remove binary compatibility overrides

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/WaySegment.java

    r17896 r17897  
    4040    }
    4141
    42     @Override
    43     public Node getFirstNode() {
    44         // This is kept for binary compatibility
    45         return super.getFirstNode();
    46     }
    47 
    48     @Override
    49     public Node getSecondNode() {
    50         // This is kept for binary compatibility
    51         return super.getSecondNode();
    52     }
    53 
    54 
    5542    /**
    5643     * Returns this way segment as complete way.
     
    6653
    6754    @Override
    68     public boolean equals(Object o) {
    69         // This is kept for binary compatibility
    70         return super.equals(o);
    71     }
    72 
    73     @Override
    74     public int hashCode() {
    75         // This is kept for binary compatibility
    76         return super.hashCode();
    77     }
    78 
    79     /**
    80      * Checks whether this segment crosses other segment
    81      *
    82      * @param s2 The other segment
    83      * @return true if both segments crosses
    84      */
    85     public boolean intersects(WaySegment s2) {
    86         // This is kept for binary compatibility
    87         return super.intersects(s2);
    88     }
    89 
    90     /**
    91      * Checks whether this segment and another way segment share the same points
    92      * @param s2 The other segment
    93      * @return true if other way segment is the same or reverse
    94      */
    95     public boolean isSimilar(WaySegment s2) {
    96         // This is kept for binary compatibility
    97         return super.isSimilar(s2);
    98     }
    99 
    100     @Override
    10155    public String toString() {
    10256        return "WaySegment [way=" + getWay().getUniqueId() + ", lowerIndex=" + getLowerIndex() + ']';
Note: See TracChangeset for help on using the changeset viewer.