Changeset 30737 in osm for applications/editors/josm/plugins/routes
- Timestamp:
- 2014-10-18T23:07:52+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/ConvertedWay.java
r23189 r30737 43 43 } 44 44 45 private List<Node> nodes = new ArrayList< Node>();45 private List<Node> nodes = new ArrayList<>(); 46 46 private BitSet routes; 47 47 -
applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/PathBuilder.java
r23189 r30737 14 14 public class PathBuilder { 15 15 16 private Map<Way, BitSet> wayRoutes = new HashMap< Way, BitSet>();16 private Map<Way, BitSet> wayRoutes = new HashMap<>(); 17 17 private Collection<ConvertedWay> convertedWays; 18 18 … … 32 32 public Collection<ConvertedWay> getConvertedWays() { 33 33 if (convertedWays == null) { 34 Map<WayEnd, ConvertedWay> ways = new HashMap< WayEnd, ConvertedWay>();34 Map<WayEnd, ConvertedWay> ways = new HashMap<>(); 35 35 36 36 for (Entry<Way, BitSet> wayEntry:wayRoutes.entrySet()) { … … 54 54 } 55 55 56 Set<ConvertedWay> uniqueWays = new HashSet< ConvertedWay>();56 Set<ConvertedWay> uniqueWays = new HashSet<>(); 57 57 uniqueWays.addAll(ways.values()); 58 58 convertedWays = uniqueWays; -
applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RouteLayer.java
r23189 r30737 35 35 private final PathPainter pathPainter; 36 36 private final PathBuilder pathBuilder = new PathBuilder(); 37 private final List<RouteDefinition> routes = new ArrayList< RouteDefinition>();37 private final List<RouteDefinition> routes = new ArrayList<>(); 38 38 private volatile boolean datasetChanged = true; 39 39 -
applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RoutesPlugin.java
r23189 r30737 27 27 public class RoutesPlugin extends Plugin implements LayerChangeListener { 28 28 29 private final List<RouteLayer> routeLayers = new ArrayList< RouteLayer>();29 private final List<RouteLayer> routeLayers = new ArrayList<>(); 30 30 private boolean isShown; 31 31 -
applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/xml/Routes.java
r23189 r30737 69 69 public List<RoutesXMLLayer> getLayer() { 70 70 if (layer == null) { 71 layer = new ArrayList< RoutesXMLLayer>();71 layer = new ArrayList<>(); 72 72 } 73 73 return this.layer; -
applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/xml/RoutesXMLLayer.java
r23189 r30737 74 74 public List<RoutesXMLRoute> getRoute() { 75 75 if (route == null) { 76 route = new ArrayList< RoutesXMLRoute>();76 route = new ArrayList<>(); 77 77 } 78 78 return this.route;
Note:
See TracChangeset
for help on using the changeset viewer.