Ignore:
Timestamp:
2016-06-25T11:56:57+02:00 (9 years ago)
Author:
donvip
Message:

checkstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/PublicTransportHelper.java

    r32395 r32398  
    77
    88/**
     9 * @author freeExec
    910 * @see http://wiki.openstreetmap.org/wiki/Key:public_transport
    10  */
    11 
    12 /**
    13  *
    14  * @author freeExec
    1511 */
    1612public final class PublicTransportHelper {
    1713
    18     public final static String PUBLIC_TRANSPORT = "public_transport";
    19     public final static String STOP_POSITION = "stop_position";
    20     public final static String STOP = "stop";
    21     public final static String STOP_AREA = "stop_area";
    22     public final static String PLATFORM = "platform";
    23     public final static String HIGHWAY = "highway";
    24     public final static String RAILWAY = "railway";
    25     public final static String BUS_STOP = "bus_stop";
    26     public final static String RAILWAY_HALT = "halt";
    27     public final static String RAILWAY_STATION = "station";
     14    public static final String PUBLIC_TRANSPORT = "public_transport";
     15    public static final String STOP_POSITION = "stop_position";
     16    public static final String STOP = "stop";
     17    public static final String STOP_AREA = "stop_area";
     18    public static final String PLATFORM = "platform";
     19    public static final String HIGHWAY = "highway";
     20    public static final String RAILWAY = "railway";
     21    public static final String BUS_STOP = "bus_stop";
     22    public static final String RAILWAY_HALT = "halt";
     23    public static final String RAILWAY_STATION = "station";
    2824
    2925    private PublicTransportHelper() {
     
    5450                String pt = p.get(PUBLIC_TRANSPORT);
    5551                if (STOP_POSITION.equals(pt)) return true;
    56             }
    57             else if (p.hasKey(RAILWAY)) {
     52            } else if (p.hasKey(RAILWAY)) {
    5853                String rw = p.get(RAILWAY);
    5954                if (RAILWAY_HALT.equals(rw) || RAILWAY_STATION.equals(rw)) return true;
     
    8378        return false;
    8479    }
     80
    8581    public static boolean isWayPlatform(RelationMember m) {
    8682        return isWayPlatform(m.getMember());
     
    121117        if (result != null) return result;
    122118        // try to get name by stop_area
    123         for (OsmPrimitive refOp : prim.getReferrers())
     119        for (OsmPrimitive refOp : prim.getReferrers()) {
    124120            if (refOp.getType() == OsmPrimitiveType.RELATION
    125             && refOp.hasTag(PUBLIC_TRANSPORT, STOP_AREA)) {
     121                    && refOp.hasTag(PUBLIC_TRANSPORT, STOP_AREA)) {
    126122                result = refOp.getName();
    127123                if (result != null) return result;
    128124            }
     125        }
    129126        return result;
    130127    }
Note: See TracChangeset for help on using the changeset viewer.