Ignore:
Timestamp:
2024-04-22T20:59:26+02:00 (6 weeks 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/dialogs/properties/PropertiesDialog.java

    r18801 r19050  
    88import java.awt.Container;
    99import java.awt.Font;
     10import java.awt.GridBagConstraints;
    1011import java.awt.GridBagLayout;
    1112import java.awt.Point;
     
    101102import org.openstreetmap.josm.gui.dialogs.relation.RelationPopupMenus;
    102103import org.openstreetmap.josm.gui.help.HelpUtil;
     104import org.openstreetmap.josm.gui.layer.Layer;
    103105import org.openstreetmap.josm.gui.layer.MainLayerManager.ActiveLayerChangeEvent;
    104106import org.openstreetmap.josm.gui.layer.MainLayerManager.ActiveLayerChangeListener;
    105 import org.openstreetmap.josm.gui.layer.Layer;
    106107import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    107108import org.openstreetmap.josm.gui.tagging.presets.TaggingPreset;
     
    293294        boolean presetsVisible = Config.getPref().getBoolean("properties.presets.visible", true);
    294295        if (presetsVisible && top) {
    295             bothTables.add(presets, GBC.std().fill(GBC.HORIZONTAL).insets(5, 2, 5, 2).anchor(GBC.NORTHWEST));
     296            bothTables.add(presets, GBC.std().fill(GridBagConstraints.HORIZONTAL).insets(5, 2, 5, 2).anchor(GridBagConstraints.NORTHWEST));
    296297            double epsilon = Double.MIN_VALUE; // need to set a weight or else anchor value is ignored
    297             bothTables.add(pluginHook, GBC.eol().insets(0, 1, 1, 1).anchor(GBC.NORTHEAST).weight(epsilon, epsilon));
     298            bothTables.add(pluginHook, GBC.eol().insets(0, 1, 1, 1).anchor(GridBagConstraints.NORTHEAST).weight(epsilon, epsilon));
    298299        }
    299300        bothTables.add(selectSth, GBC.eol().fill().insets(10, 10, 10, 10));
    300         bothTables.add(tagTableFilter, GBC.eol().fill(GBC.HORIZONTAL));
    301         bothTables.add(tagTable.getTableHeader(), GBC.eol().fill(GBC.HORIZONTAL));
    302         bothTables.add(tagTable, GBC.eol().fill(GBC.BOTH));
    303         bothTables.add(membershipTable.getTableHeader(), GBC.eol().fill(GBC.HORIZONTAL));
    304         bothTables.add(membershipTable, GBC.eol().fill(GBC.BOTH));
     301        bothTables.add(tagTableFilter, GBC.eol().fill(GridBagConstraints.HORIZONTAL));
     302        bothTables.add(tagTable.getTableHeader(), GBC.eol().fill(GridBagConstraints.HORIZONTAL));
     303        bothTables.add(tagTable, GBC.eol().fill(GridBagConstraints.BOTH));
     304        bothTables.add(membershipTable.getTableHeader(), GBC.eol().fill(GridBagConstraints.HORIZONTAL));
     305        bothTables.add(membershipTable, GBC.eol().fill(GridBagConstraints.BOTH));
    305306        if (presetsVisible && !top) {
    306             bothTables.add(presets, GBC.eol().fill(GBC.HORIZONTAL).insets(5, 2, 5, 2));
     307            bothTables.add(presets, GBC.eol().fill(GridBagConstraints.HORIZONTAL).insets(5, 2, 5, 2));
    307308        }
    308309
     
    15041505     * Clears the row selection when it is filtered away by the row sorter.
    15051506     */
    1506     private class RemoveHiddenSelection implements ListSelectionListener, RowSorterListener {
     1507    private final class RemoveHiddenSelection implements ListSelectionListener, RowSorterListener {
    15071508
    15081509        void removeHiddenSelection() {
     
    15271528    }
    15281529
    1529     private class HoverPreviewPropListener implements ValueChangeListener<Boolean> {
     1530    private final class HoverPreviewPropListener implements ValueChangeListener<Boolean> {
    15301531        @Override
    15311532        public void valueChanged(ValueChangeEvent<? extends Boolean> e) {
     
    15421543     * Otherwise user would need to change selection to see the preference change take effect.
    15431544     */
    1544     private class HoverPreviewPreferSelectionPropListener implements ValueChangeListener<Boolean> {
     1545    private final class HoverPreviewPreferSelectionPropListener implements ValueChangeListener<Boolean> {
    15451546        @Override
    15461547        public void valueChanged(ValueChangeEvent<? extends Boolean> e) {
Note: See TracChangeset for help on using the changeset viewer.