Changeset 15669 in josm


Ignore:
Timestamp:
2020-01-10T00:07:16+01:00 (5 years ago)
Author:
simon04
Message:

see #18302 - PropertiesDialog: avoid intermediate list creation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java

    r15586 r15669  
    2828import java.util.TreeSet;
    2929import java.util.concurrent.atomic.AtomicBoolean;
    30 import java.util.stream.Collectors;
    3130
    3231import javax.swing.AbstractAction;
     
    372371                        membershipTable, x -> (IRelation<?>) membershipData.getValueAt(x, 0), e.getValue(), e.getKey()));
    373372            }
    374             membershipMenuTagInfoNatItems.addAll(taginfoNationalActions.stream().map(membershipMenu::add).collect(Collectors.toList()));
    375             tagMenuTagInfoNatItems.addAll(taginfoNationalActions.stream().map(tagMenu::add).collect(Collectors.toList()));
     373            taginfoNationalActions.stream().map(membershipMenu::add).forEach(membershipMenuTagInfoNatItems::add);
     374            taginfoNationalActions.stream().map(tagMenu::add).forEach(tagMenuTagInfoNatItems::add);
    376375        }
    377376    }
Note: See TracChangeset for help on using the changeset viewer.