Ignore:
Timestamp:
2013-08-03T00:12:29+02:00 (13 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/actions/OpenLocationAction.java

    r6084 r6104  
    133133    public Collection<DownloadTask> findDownloadTasks(final String url) {
    134134        List<DownloadTask> result = new ArrayList<DownloadTask>();
    135         for (int i = 0; i < downloadTasks.size(); i++) {
    136             Class<? extends DownloadTask> taskClass = downloadTasks.get(i);
     135        for (Class<? extends DownloadTask> taskClass : downloadTasks) {
    137136            if (taskClass != null) {
    138137                try {
Note: See TracChangeset for help on using the changeset viewer.