Ignore:
Timestamp:
2024-04-22T20:59:26+02:00 (7 months ago)
Author:
taylor.smock
Message:

Revert most var changes from r19048, fix most new compile warnings and checkstyle issues

Also, document why various ErrorProne checks were originally disabled and fix
generic SonarLint issues.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/download/PlaceSelection.java

    r18805 r19050  
    77import java.awt.Component;
    88import java.awt.Dimension;
     9import java.awt.GridBagConstraints;
    910import java.awt.GridBagLayout;
    1011import java.awt.event.ActionEvent;
     
    106107
    107108        lpanel.add(new JLabel(tr("Choose the server for searching:")), GBC.std(0, 0).weight(0, 0).insets(0, 0, 5, 0));
    108         lpanel.add(serverComboBox, GBC.std(1, 0).fill(GBC.HORIZONTAL));
     109        lpanel.add(serverComboBox, GBC.std(1, 0).fill(GridBagConstraints.HORIZONTAL));
    109110        String s = Config.getPref().get("namefinder.server", SERVERS[0].name);
    110111        for (int i = 0; i < SERVERS.length; ++i) {
     
    118119        cbSearchExpression.setToolTipText(tr("Enter a place name to search for"));
    119120        cbSearchExpression.getModel().prefs().load(HISTORY_KEY);
    120         lpanel.add(cbSearchExpression, GBC.std(1, 1).fill(GBC.HORIZONTAL));
    121 
    122         panel.add(lpanel, GBC.std().fill(GBC.HORIZONTAL).insets(5, 5, 0, 5));
     121        lpanel.add(cbSearchExpression, GBC.std(1, 1).fill(GridBagConstraints.HORIZONTAL));
     122
     123        panel.add(lpanel, GBC.std().fill(GridBagConstraints.HORIZONTAL).insets(5, 5, 0, 5));
    123124        SearchAction searchAction = new SearchAction();
    124125        JButton btnSearch = new JButton(searchAction);
     
    495496                return this;
    496497            SearchResult sr = (SearchResult) value;
    497             switch(column) {
     498            switch (column) {
    498499            case 0:
    499500                setText(sr.getName());
Note: See TracChangeset for help on using the changeset viewer.