Ignore:
Timestamp:
2013-08-03T00:12:29+02:00 (11 years ago)
Author:
Don-vip
Message:

see #8902 - Small performance enhancements / coding style (patch by shinigami):

  • while -> foreach
  • for -> for each

plus:

  • cleanup of FileDrop class to make it more integrated into JOSM core + remove warnings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/ActionFlagsTableCell.java

    r6084 r6104  
    5555
    5656        ActionMap am = getActionMap();
    57         for(int i=0; i<checkBoxes.length; i++) {
    58             final JCheckBox b = checkBoxes[i];
     57        for (final JCheckBox b : checkBoxes) {
    5958            add(b, GBC.eol().fill(GBC.HORIZONTAL));
    6059            b.setPreferredSize(new Dimension(b.getPreferredSize().width, 19));
Note: See TracChangeset for help on using the changeset viewer.