Ignore:
Timestamp:
2015-12-28T14:23:08+01:00 (9 years ago)
Author:
nokutu
Message:

Changed ConcurrentSkipListSet for ConcurrentHashSet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryData.java

    r31882 r31883  
    4747   */
    4848  protected MapillaryData() {
    49     this.images = new ConcurrentSkipListSet<>();
    50     this.multiSelectedImages = new ConcurrentSkipListSet<>();
     49    this.images = Collections.newSetFromMap(new ConcurrentHashMap<MapillaryAbstractImage, Boolean>());
     50    this.multiSelectedImages = Collections.newSetFromMap(new ConcurrentHashMap<MapillaryAbstractImage, Boolean>());
    5151    this.selectedImage = null;
    5252
     
    383383   */
    384384  public synchronized void setImages(Set<MapillaryAbstractImage> images) {
    385     this.images = new ConcurrentSkipListSet<>(images);
     385    this.images.clear();
     386    this.images.addAll(images);
    386387  }
    387388
Note: See TracChangeset for help on using the changeset viewer.