Ignore:
Timestamp:
2016-12-03T18:16:10+01:00 (9 years ago)
Author:
Don-vip
Message:

findbugs - SIC_INNER_SHOULD_BE_STATIC_ANON

File:
1 edited

Legend:

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

    r10491 r11357  
    8383        dlg.setDialogsPanel(this);
    8484        dlg.setVisible(false);
    85         final JPanel p = new JPanel() {
    86             /**
    87              * Honoured by the MultiSplitPaneLayout when the
    88              * entire Window is resized.
    89              */
    90             @Override
    91             public Dimension getMinimumSize() {
    92                 return new Dimension(0, 40);
    93             }
    94         };
     85        final JPanel p = new MinSizePanel();
    9586        p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS));
    9687        p.setVisible(false);
     
    112103        } else {
    113104            dlg.hideDialog();
     105        }
     106    }
     107
     108    static final class MinSizePanel extends JPanel {
     109        @Override
     110        public Dimension getMinimumSize() {
     111            // Honoured by the MultiSplitPaneLayout when the entire Window is resized
     112            return new Dimension(0, 40);
    114113        }
    115114    }
Note: See TracChangeset for help on using the changeset viewer.