Changeset 30737 in osm for applications/editors/josm/plugins/sds
- Timestamp:
- 2014-10-18T23:07:52+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/sds/src/org/openstreetmap/hot/sds
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/sds/src/org/openstreetmap/hot/sds/DetermineSdsModificationsUploadHook.java
r28160 r30737 40 40 public boolean checkUpload(APIDataSet apiDataSet) { 41 41 42 ArrayList<OsmPrimitive> droplist = new ArrayList< OsmPrimitive>();42 ArrayList<OsmPrimitive> droplist = new ArrayList<>(); 43 43 44 44 // check deleted primitives for special tags. … … 54 54 for (OsmPrimitive upd : apiDataSet.getPrimitivesToUpdate()) { 55 55 56 HashSet<String> allKeys = new HashSet< String>();56 HashSet<String> allKeys = new HashSet<>(); 57 57 boolean specialTags = false; 58 58 … … 87 87 88 88 // assemble new set of special tags. might turn out to be empty. 89 HashMap<String, String> newSpecialTags = new HashMap< String, String>();89 HashMap<String, String> newSpecialTags = new HashMap<>(); 90 90 for (String key : upd.keySet()) { 91 91 if (isSpecialKey(key)) newSpecialTags.put(key, upd.get(key)); … … 151 151 for (OsmPrimitive add : apiDataSet.getPrimitivesToAdd()) { 152 152 // assemble new set of special tags. might turn out to be empty. 153 HashMap<String, String> newSpecialTags = new HashMap< String, String>();153 HashMap<String, String> newSpecialTags = new HashMap<>(); 154 154 for (String key : add.keySet()) { 155 155 if (isSpecialKey(key)) newSpecialTags.put(key, add.get(key)); -
applications/editors/josm/plugins/sds/src/org/openstreetmap/hot/sds/ReadPostprocessor.java
r29684 r30737 38 38 public void postprocessDataSet(DataSet ds, ProgressMonitor progress) { 39 39 40 nodeList = new ArrayList< Long>();41 wayList = new ArrayList< Long>();42 relationList = new ArrayList< Long>();40 nodeList = new ArrayList<>(); 41 wayList = new ArrayList<>(); 42 relationList = new ArrayList<>(); 43 43 44 44 Visitor adder = new Visitor() { -
applications/editors/josm/plugins/sds/src/org/openstreetmap/hot/sds/SdsApi.java
r28160 r30737 41 41 42 42 /** the collection of instantiated OSM APIs */ 43 private static HashMap<String, SdsApi> instances = new HashMap< String, SdsApi>();43 private static HashMap<String, SdsApi> instances = new HashMap<>(); 44 44 45 45 /** -
applications/editors/josm/plugins/sds/src/org/openstreetmap/hot/sds/SdsCredentialAgent.java
r29854 r30737 27 27 public class SdsCredentialAgent extends AbstractCredentialsAgent { 28 28 29 Map<RequestorType, PasswordAuthentication> sdsMemoryCredentialsCache = new HashMap< RequestorType, PasswordAuthentication>();29 Map<RequestorType, PasswordAuthentication> sdsMemoryCredentialsCache = new HashMap<>(); 30 30 31 31 /** -
applications/editors/josm/plugins/sds/src/org/openstreetmap/hot/sds/SdsLoadAction.java
r30666 r30737 54 54 public OpenFileTask(List<File> files, SeparateDataStorePlugin p) { 55 55 super(tr("Loading files"), false /* don't ignore exception */); 56 this.files = new ArrayList< File>(files);56 this.files = new ArrayList<>(files); 57 57 plugin = p; 58 58 } -
applications/editors/josm/plugins/sds/src/org/openstreetmap/hot/sds/SdsOsmWriter.java
r28160 r30737 40 40 out.println(">"); 41 41 } 42 List<Entry<String, String>> entries = new ArrayList< Entry<String,String>>(osm.getKeys().entrySet());42 List<Entry<String, String>> entries = new ArrayList<>(osm.getKeys().entrySet()); 43 43 Collections.sort(entries, byKeyComparator); 44 44 for (Entry<String, String> e : entries) { -
applications/editors/josm/plugins/sds/src/org/openstreetmap/hot/sds/SeparateDataStorePlugin.java
r29684 r30737 29 29 { 30 30 31 public HashMap<Long, IPrimitive> originalNodes = new HashMap< Long, IPrimitive>();32 public HashMap<Long, IPrimitive> originalWays = new HashMap< Long, IPrimitive>();33 public HashMap<Long, IPrimitive> originalRelations = new HashMap< Long, IPrimitive>();31 public HashMap<Long, IPrimitive> originalNodes = new HashMap<>(); 32 public HashMap<Long, IPrimitive> originalWays = new HashMap<>(); 33 public HashMap<Long, IPrimitive> originalRelations = new HashMap<>(); 34 34 35 public ArrayList<QueueItem> uploadQueue = new ArrayList< QueueItem>();35 public ArrayList<QueueItem> uploadQueue = new ArrayList<>(); 36 36 37 37 private PrimitiveVisitor learnVisitor = new PrimitiveVisitor() { … … 113 113 */ 114 114 protected void clearQueue() { 115 ArrayList<QueueItem> newQueue = new ArrayList< QueueItem>();115 ArrayList<QueueItem> newQueue = new ArrayList<>(); 116 116 for (QueueItem q : uploadQueue) { 117 117 if (!q.processed) newQueue.add(q);
Note:
See TracChangeset
for help on using the changeset viewer.