Ignore:
Timestamp:
2016-05-18T17:44:31+02:00 (8 years ago)
Author:
Don-vip
Message:

findbugs - UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/OverpassDownloadAction.java

    r10131 r10250  
    120120    private static final class OverpassDownloadDialog extends DownloadDialog {
    121121
    122         private HistoryComboBox overpassWizard;
    123         private JosmTextArea overpassQuery;
     122        private final HistoryComboBox overpassWizard = new HistoryComboBox();
     123        private final JosmTextArea overpassQuery = new JosmTextArea("", 8, 80);
    124124        private static OverpassDownloadDialog instance;
    125125        private static final CollectionProperty OVERPASS_WIZARD_HISTORY = new CollectionProperty("download.overpass.wizard",
     
    151151
    152152            final String tooltip = tr("Builds an Overpass query using the Overpass Turbo query wizard");
    153             overpassWizard = new HistoryComboBox();
    154153            overpassWizard.setToolTipText(tooltip);
    155154            overpassWizard.getEditorComponent().addFocusListener(disableActionsFocusListener);
     
    178177            pnl.add(overpassWizard, GBC.eol().fill(GBC.HORIZONTAL));
    179178
    180             overpassQuery = new JosmTextArea("", 8, 80);
    181179            overpassQuery.setFont(GuiHelper.getMonospacedFont(overpassQuery));
    182180            overpassQuery.addFocusListener(disableActionsFocusListener);
Note: See TracChangeset for help on using the changeset viewer.