Ignore:
Timestamp:
2016-10-08T02:45:48+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S1612 - Lambdas should be replaced with method references

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/CustomizeColor.java

    r10824 r11097  
    6666    @Override
    6767    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);
    6969        JColorChooser c = new JColorChooser(cl);
    7070        Object[] options = new Object[]{tr("OK"), tr("Cancel"), tr("Default")};
Note: See TracChangeset for help on using the changeset viewer.