Changeset 30737 in osm for applications/editors/josm/plugins/OsmInspectorPlugin
- Timestamp:
- 2014-10-18T23:07:52+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/GeoFabrikWFSClient.java
r30701 r30737 95 95 String getCapabilities = "http://tools.geofabrik.de/osmi/view/routing_non_eu/wxs?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities"; 96 96 @SuppressWarnings("rawtypes") 97 Map<String, Comparable> connectionParameters = new HashMap< String, Comparable>();97 Map<String, Comparable> connectionParameters = new HashMap<>(); 98 98 connectionParameters.put("WFSDataStoreFactory:GET_CAPABILITIES_URL", 99 99 getCapabilities); -
applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/OSMIFeatureTracker.java
r29854 r30737 16 16 public OSMIFeatureTracker( 17 17 FeatureCollection<SimpleFeatureType, SimpleFeature> featuresIn) { 18 hashFeatures = new HashMap< Long, SimpleFeature>();18 hashFeatures = new HashMap<>(); 19 19 features = new MemoryFeatureCollection(featuresIn.getSchema()); 20 20 -
applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/OsmInspectorLayer.java
r29854 r30737 200 200 201 201 bugId = idx; 202 attributes = new HashMap< String, String>();202 attributes = new HashMap<>(); 203 203 Collection<Property> properties = next.getProperties(); 204 204 Iterator<Property> it = properties.iterator(); … … 261 261 262 262 public BugIndex(Map<BugInfo, Long> bugs) { 263 osmBugs = new ArrayList< BugInfo>(bugs.keySet());263 osmBugs = new ArrayList<>(bugs.keySet()); 264 264 nextIndex = 0; 265 265 previousIndex = -1; … … 267 267 268 268 public BugIndex(Map<BugInfo, Long> bugs, int n, int p) { 269 osmBugs = new ArrayList< BugInfo>(bugs.keySet());269 osmBugs = new ArrayList<>(bugs.keySet()); 270 270 nextIndex = n; 271 271 previousIndex = p; … … 345 345 super("OsmInspector"); 346 346 347 arrFeatures = new ArrayList< OSMIFeatureTracker>();348 osmiBugInfo = new LinkedHashMap< BugInfo, Long>();349 selectGeomType = new ArrayList< GeomType>();347 arrFeatures = new ArrayList<>(); 348 osmiBugInfo = new LinkedHashMap<>(); 349 selectGeomType = new ArrayList<>(); 350 350 351 351 // Step 3 - discovery; enhance to iterate over all types with bounds … … 360 360 for (int idx = 1; idx < typeNames.length; ++idx) { 361 361 String typeName = typeNames[idx]; 362 Set<FeatureId> selectedFeatures = new HashSet< FeatureId>();362 Set<FeatureId> selectedFeatures = new HashSet<>(); 363 363 364 364 FeatureCollection<SimpleFeatureType, SimpleFeature> features = wfsClient … … 417 417 for (int idx = 1; idx < typeNames.length; ++idx) { 418 418 String typeName = typeNames[idx]; 419 Set<FeatureId> selectedFeatures = new HashSet< FeatureId>();419 Set<FeatureId> selectedFeatures = new HashSet<>(); 420 420 421 421 monitor.setProgress(100 / typeNames.length * idx); … … 621 621 FeatureIterator<SimpleFeature> iter = selectedFeatures 622 622 .features(); 623 Set<FeatureId> IDs = new HashSet< FeatureId>();623 Set<FeatureId> IDs = new HashSet<>(); 624 624 625 625 System.out.println("Selected features "
Note:
See TracChangeset
for help on using the changeset viewer.