Ignore:
Timestamp:
2013-07-26T10:36:15+02:00 (7 years ago)
Author:
bastiK
Message:

see #8902 - Small performance enhancements (patch by shinigami)

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/PurgeAction.java

    r5905 r6083  
    244244                }
    245245            });
    246             JList list = new JList(toPurgeAdditionally.toArray(new OsmPrimitive[0]));
     246            JList list = new JList(toPurgeAdditionally.toArray(new OsmPrimitive[toPurgeAdditionally.size()]));
    247247            /* force selection to be active for all entries */
    248248            list.setCellRenderer(new OsmPrimitivRenderer() {
  • trunk/src/org/openstreetmap/josm/actions/RenameLayerAction.java

    r5886 r6083  
    7878            if (filerename.isSelected()) {
    7979                String newname = nameText;
    80                 if (newname.indexOf("/") == -1 && newname.indexOf("\\") == -1) {
     80                if (newname.indexOf('/') == -1 && newname.indexOf('\\') == -1) {
    8181                    newname = file.getParent() + File.separator + newname;
    8282                }
  • trunk/src/org/openstreetmap/josm/actions/RestartAction.java

    r6069 r6083  
    102102                public void run() {
    103103                    try {
    104                         Runtime.getRuntime().exec(cmd.toArray(new String[]{}));
     104                        Runtime.getRuntime().exec(cmd.toArray(new String[cmd.size()]));
    105105                    } catch (IOException e) {
    106106                        e.printStackTrace();
Note: See TracChangeset for help on using the changeset viewer.