Changeset 11097 in josm
- Timestamp:
- 2016-10-08T02:45:48+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/TagCollection.java
r10972 r11097 535 535 */ 536 536 public Set<String> getValues() { 537 return tags.keySet().stream().map( e -> e.getValue()).collect(Collectors.toSet());537 return tags.keySet().stream().map(Tag::getValue).collect(Collectors.toSet()); 538 538 } 539 539 … … 548 548 public Set<String> getValues(String key) { 549 549 // null-safe 550 return generateStreamForKey(key).map( e -> e.getValue()).collect(Collectors.toSet());550 return generateStreamForKey(key).map(Tag::getValue).collect(Collectors.toSet()); 551 551 } 552 552 … … 737 737 738 738 private Stream<String> generateKeyStream() { 739 return tags.keySet().stream().map( tag -> tag.getKey());739 return tags.keySet().stream().map(Tag::getKey); 740 740 } 741 741 -
trunk/src/org/openstreetmap/josm/gui/dialogs/validator/ValidatorTreePanel.java
r10880 r11097 180 180 Map<Severity, Map<String, Map<String, List<TestError>>>> errorTreeDeep 181 181 = errors.stream().filter(filterToUse).collect( 182 Collectors.groupingBy( e -> e.getSeverity(), () -> new EnumMap<>(Severity.class),182 Collectors.groupingBy(TestError::getSeverity, () -> new EnumMap<>(Severity.class), 183 183 Collectors.groupingBy(e -> e.getDescription() == null ? "" : e.getDescription(), 184 Collectors.groupingBy( e -> e.getMessage()))));184 Collectors.groupingBy(TestError::getMessage)))); 185 185 186 186 List<TreePath> expandedPaths = new ArrayList<>(); -
trunk/src/org/openstreetmap/josm/gui/layer/CustomizeColor.java
r10824 r11097 66 66 @Override 67 67 public void actionPerformed(ActionEvent e) { 68 Color cl = colors.stream().map( c -> c.get()).filter(Objects::nonNull).findAny().orElse(Color.GRAY);68 Color cl = colors.stream().map(AbstractProperty::get).filter(Objects::nonNull).findAny().orElse(Color.GRAY); 69 69 JColorChooser c = new JColorChooser(cl); 70 70 Object[] options = new Object[]{tr("OK"), tr("Cancel"), tr("Default")};
Note:
See TracChangeset
for help on using the changeset viewer.