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/history/NodeListViewer.java

    r8285 r8308  
    4848public class NodeListViewer extends JPanel {
    4949
    50     private HistoryBrowserModel model;
     50    private transient HistoryBrowserModel model;
    5151    private VersionInfoPanel referenceInfoPanel;
    5252    private VersionInfoPanel currentInfoPanel;
    53     private AdjustmentSynchronizer adjustmentSynchronizer;
    54     private SelectionSynchronizer selectionSynchronizer;
     53    private transient AdjustmentSynchronizer adjustmentSynchronizer;
     54    private transient SelectionSynchronizer selectionSynchronizer;
    5555    private NodeListPopupMenu popupMenu;
    5656
     
    215215
    216216    static class ZoomToNodeAction extends AbstractAction {
    217         private PrimitiveId primitiveId;
    218 
     217        private transient PrimitiveId primitiveId;
     218
     219        /**
     220         * Constructs a new {@code ZoomToNodeAction}.
     221         */
    219222        public ZoomToNodeAction() {
    220223            putValue(NAME, tr("Zoom to node"));
     
    258261
    259262    static class ShowHistoryAction extends AbstractAction {
    260         private PrimitiveId primitiveId;
    261 
     263        private transient PrimitiveId primitiveId;
     264
     265        /**
     266         * Constructs a new {@code ShowHistoryAction}.
     267         */
    262268        public ShowHistoryAction() {
    263269            putValue(NAME, tr("Show history"));
Note: See TracChangeset for help on using the changeset viewer.