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

fix potential NPEs and Sonar issues related to serialization

File:
1 edited

Legend:

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

    r7949 r8308  
    9898    /** the popup menu and its handler */
    9999    private final ListPopupMenu popupMenu;
    100     private final PopupMenuHandler popupMenuHandler;
     100    private final transient PopupMenuHandler popupMenuHandler;
    101101
    102102    /**
     
    477477        // Variable to store history from currentDataSet()
    478478        private LinkedList<Collection<? extends OsmPrimitive>> history;
    479         private final List<OsmPrimitive> selection = new ArrayList<>();
     479        private final transient List<OsmPrimitive> selection = new ArrayList<>();
    480480        private DefaultListSelectionModel selectionModel;
    481481
     
    737737     */
    738738    protected static class SearchMenuItem extends JMenuItem implements ActionListener {
    739         protected final SearchSetting s;
     739        protected final transient SearchSetting s;
    740740
    741741        public SearchMenuItem(SearchSetting s) {
     
    778778     */
    779779    protected static class SelectionMenuItem extends JMenuItem implements ActionListener {
    780         private final DefaultNameFormatter df = DefaultNameFormatter.getInstance();
    781         protected Collection<? extends OsmPrimitive> sel;
     780        private final transient DefaultNameFormatter df = DefaultNameFormatter.getInstance();
     781        protected transient Collection<? extends OsmPrimitive> sel;
    782782
    783783        public SelectionMenuItem(Collection<? extends OsmPrimitive> sel) {
Note: See TracChangeset for help on using the changeset viewer.