Ignore:
Timestamp:
2023-08-09T15:30:01+02:00 (9 months ago)
Author:
taylor.smock
Message:

Fix #22832: Code cleanup and some simplification, documentation fixes (patch by gaben)

There should not be any functional changes in this patch; it is intended to do
the following:

  • Simplify and cleanup code (example: Arrays.asList(item) -> Collections.singletonList(item))
  • Fix typos in documentation (which also corrects the documentation to match what actually happens, in some cases)
File:
1 edited

Legend:

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

    r18436 r18801  
    9797                    int i = field.getInt(null);
    9898                    String s = KeyEvent.getKeyText(i);
    99                     if (s != null && s.length() > 0 && !s.contains(unknown)) {
     99                    if (s != null && !s.isEmpty() && !s.contains(unknown)) {
    100100                        list.put(Integer.valueOf(i), s);
    101101                    }
Note: See TracChangeset for help on using the changeset viewer.