Ignore:
Timestamp:
2015-05-02T00:55:19+02:00 (11 years ago)
Author:
Don-vip
Message:

fix potential NPEs and Sonar issues related to serialization

Location:
trunk/src/org/openstreetmap/josm/gui/download
Files:
2 edited

Legend:

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

    r8215 r8308  
    7070
    7171    protected SlippyMapChooser slippyMapChooser;
    72     protected final List<DownloadSelection> downloadSelections = new ArrayList<>();
     72    protected final transient List<DownloadSelection> downloadSelections = new ArrayList<>();
    7373    protected final JTabbedPane tpDownloadAreaSelectors = new JTabbedPane();
    7474    protected JCheckBox cbNewLayer;
    7575    protected JCheckBox cbStartup;
    7676    protected final JLabel sizeCheck = new JLabel();
    77     protected Bounds currentBounds = null;
     77    protected transient Bounds currentBounds = null;
    7878    protected boolean canceled;
    7979
  • trunk/src/org/openstreetmap/josm/gui/download/PlaceSelection.java

    r8304 r8308  
    328328        private String searchExpression;
    329329        private HttpURLConnection connection;
    330         private List<SearchResult> data;
     330        private transient List<SearchResult> data;
    331331        private boolean canceled = false;
    332332        private Server useserver;
     
    409409
    410410    static class NamedResultTableModel extends DefaultTableModel {
    411         private List<SearchResult> data;
    412         private ListSelectionModel selectionModel;
     411        private transient List<SearchResult> data;
     412        private transient ListSelectionModel selectionModel;
    413413
    414414        public NamedResultTableModel(ListSelectionModel selectionModel) {
Note: See TracChangeset for help on using the changeset viewer.