Ignore:
Timestamp:
2019-03-05T21:12:07+01:00 (5 years ago)
Author:
GerdP
Message:

fix pmd: This call to Collection.toArray() may be optimizable

File:
1 edited

Legend:

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

    r14834 r14839  
    352352        walkAndSelectRelatedErrors(new TreePath(getRoot()), new HashSet<>(primitives)::contains, paths);
    353353        getSelectionModel().clearSelection();
    354         getSelectionModel().setSelectionPaths(paths.toArray(new TreePath[paths.size()]));
     354        getSelectionModel().setSelectionPaths(paths.toArray(new TreePath[0]));
    355355        // make sure that first path is visible
    356356        if (!paths.isEmpty()) {
Note: See TracChangeset for help on using the changeset viewer.