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/ToggleDialog.java

    r8081 r8308  
    9595    public static final BooleanProperty PROP_DYNAMIC_BUTTONS = new BooleanProperty("dialog.dynamic.buttons", false);
    9696
    97     private final ParametrizedEnumProperty<ButtonHidingType> PROP_BUTTON_HIDING = new ParametrizedEnumProperty<ToggleDialog.ButtonHidingType>(
     97    private final transient ParametrizedEnumProperty<ButtonHidingType> PROP_BUTTON_HIDING = new ParametrizedEnumProperty<ToggleDialog.ButtonHidingType>(
    9898            ButtonHidingType.class, ButtonHidingType.DYNAMIC) {
    9999        @Override
     
    152152    protected JToggleButton button;
    153153    private JPanel buttonsPanel;
    154     private List<javax.swing.Action> buttonActions = new ArrayList<>();
     154    private transient List<javax.swing.Action> buttonActions = new ArrayList<>();
    155155
    156156    /** holds the menu entry in the windows menu. Required to properly
Note: See TracChangeset for help on using the changeset viewer.