Ignore:
Timestamp:
2023-07-24T15:55:23+02:00 (12 months ago)
Author:
taylor.smock
Message:

reltoolbox: Clean up a bunch of lint warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/CreateRelationAction.java

    r35829 r36102  
    77import java.awt.GridBagLayout;
    88import java.awt.event.ActionEvent;
    9 import java.awt.event.ActionListener;
    109import java.awt.event.KeyEvent;
    1110import java.util.Arrays;
     
    9392
    9493    // Thanks to TagInfo for the list
    95     private static final List<String> RELATION_TYPES = Arrays.asList(new String[] {
    96             "multipolygon", "boundary", "route", "site", "restriction", "associatedStreet", "public_transport",
    97             "street", "collection", "address", "enforcement", "destination_sign", "route_master", "junction",
    98             "waterway", "bridge", "tunnel", "surveillance"
    99     });
     94    private static final List<String> RELATION_TYPES = Arrays.asList("multipolygon", "boundary", "route", "site",
     95            "restriction", "associatedStreet", "public_transport", "street", "collection", "address", "enforcement",
     96            "destination_sign", "route_master", "junction", "waterway", "bridge", "tunnel", "surveillance");
    10097
    10198    private String askForType() {
     
    122119        dlg.setModalityType(ModalityType.DOCUMENT_MODAL);
    123120
    124         keys.getEditor().addActionListener(new ActionListener() {
    125             @Override
    126             public void actionPerformed(ActionEvent e) {
    127                 dlg.setVisible(false);
    128                 optionPane.setValue(JOptionPane.OK_OPTION);
    129             }
     121        keys.getEditor().addActionListener(e -> {
     122            dlg.setVisible(false);
     123            optionPane.setValue(JOptionPane.OK_OPTION);
    130124        });
    131125
Note: See TracChangeset for help on using the changeset viewer.