Ignore:
Timestamp:
2018-04-13T00:07:00+02:00 (18 months ago)
Author:
Don-vip
Message:

more use of IPrimitive instead of OsmPrimitive

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/RotationAngle.java

    r12756 r13623  
    44import java.util.Locale;
    55
     6import org.openstreetmap.josm.data.osm.IPrimitive;
    67import org.openstreetmap.josm.data.osm.Node;
    78import org.openstreetmap.josm.data.osm.OsmPrimitive;
     
    2223    final class WayDirectionRotationAngle implements RotationAngle {
    2324        @Override
    24         public double getRotationAngle(OsmPrimitive p) {
     25        public double getRotationAngle(IPrimitive p) {
    2526            if (!(p instanceof Node)) {
    2627                return 0;
     
    7071
    7172        @Override
    72         public double getRotationAngle(OsmPrimitive p) {
     73        public double getRotationAngle(IPrimitive p) {
    7374            return angle;
    7475        }
     
    111112     * @param p primitive
    112113     * @return rotation angle
     114     * @since 13623 (signature)
    113115     */
    114     double getRotationAngle(OsmPrimitive p);
     116    double getRotationAngle(IPrimitive p);
    115117
    116118    /**
Note: See TracChangeset for help on using the changeset viewer.