- Timestamp:
- 2020-06-07T17:02:23+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/imagery/ImageryReader.java
r16129 r16559 7 7 import java.util.ArrayList; 8 8 import java.util.Arrays; 9 import java.util.HashMap; 9 10 import java.util.List; 10 11 import java.util.Map; … … 132 133 private ImageryInfo mirrorEntry; 133 134 private ImageryBounds bounds; 135 private Map<ImageryBounds, ImageryBounds> boundsInterner = new HashMap<>(); 134 136 private Shape shape; 135 137 // language of last element, does only work for simple ENTRY_ATTRIBUTE's … … 542 544 break; 543 545 case BOUNDS: 544 entry.setBounds( bounds);546 entry.setBounds(intern(bounds)); 545 547 bounds = null; 546 548 break; … … 567 569 // nothing to do for these or the unknown type 568 570 } 571 } 572 573 private ImageryBounds intern(ImageryBounds imageryBounds) { 574 return boundsInterner.computeIfAbsent(imageryBounds, ignore -> imageryBounds); 569 575 } 570 576 }
Note:
See TracChangeset
for help on using the changeset viewer.