Ignore:
Timestamp:
2016-09-17T23:28:38+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - pmd:OptimizableToArrayCall - Optimizable To Array Call

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/shortcut/PrefJPanel.java

    r10853 r11017  
    225225        cbAlt.setText(ALT); // see above for why no tr()
    226226        tfKey.setAction(action);
    227         tfKey.setModel(new DefaultComboBoxModel<>(keyList.values().toArray(new String[0])));
     227        tfKey.setModel(new DefaultComboBoxModel<>(keyList.values().toArray(new String[keyList.size()])));
    228228        cbMeta.setAction(action);
    229229        cbMeta.setText(META); // see above for why no tr()
Note: See TracChangeset for help on using the changeset viewer.