Ignore:
Timestamp:
2015-11-30T23:30:47+01:00 (10 years ago)
Author:
Don-vip
Message:

pmd - Ternary operator with a boolean literal can be simplified with a boolean expression

File:
1 edited

Legend:

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

    r8958 r9074  
    762762    protected void setIsDocked(boolean val) {
    763763        if (buttonsPanel != null) {
    764             buttonsPanel.setVisible(val ? buttonHiding != ButtonHidingType.ALWAYS_HIDDEN : true);
     764            buttonsPanel.setVisible(!val || buttonHiding != ButtonHidingType.ALWAYS_HIDDEN);
    765765        }
    766766        isDocked = val;
Note: See TracChangeset for help on using the changeset viewer.