Ignore:
Timestamp:
2016-01-09T16:25:08+01:00 (4 years ago)
Author:
simon04
Message:

fix #7612 - Prefer OAuth, provide authorization at upload

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r9351 r9352  
    4949import java.util.Locale;
    5050import java.util.Objects;
    51 import java.util.concurrent.ExecutorService;
    52 import java.util.concurrent.Executors;
     51import java.util.concurrent.Executor;
    5352import java.util.concurrent.ForkJoinPool;
    5453import java.util.concurrent.ForkJoinWorkerThread;
     
    14311430            }
    14321431        }, null, true);
     1432    }
     1433
     1434    /**
     1435     * Returns an executor which executes commands in the calling thread
     1436     * @return an executor
     1437     */
     1438    public static Executor newDirectExecutor() {
     1439        return new Executor() {
     1440            @Override
     1441            public void execute(Runnable command) {
     1442                command.run();
     1443            }
     1444        };
    14331445    }
    14341446
Note: See TracChangeset for help on using the changeset viewer.