- Timestamp:
- 2024-06-22T16:12:54+02:00 (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Utils.java
r19121 r19124 666 666 return Collections.singletonMap(entry.getKey(), entry.getValue()); 667 667 } 668 // Map.copyOf would also work, but if the original map is immutable, it just returns the original map.669 return Map.ofEntries(map.entrySet().toArray(new Map.Entry[0]));668 // see #23748 don't use Map.ofEntries as it doesn't allow null keys or values 669 return Collections.unmodifiableMap(map); 670 670 } 671 671
Note:
See TracChangeset
for help on using the changeset viewer.