Changeset 9352 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2016-01-09T16:25:08+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Utils.java
r9351 r9352 49 49 import java.util.Locale; 50 50 import java.util.Objects; 51 import java.util.concurrent.ExecutorService; 52 import java.util.concurrent.Executors; 51 import java.util.concurrent.Executor; 53 52 import java.util.concurrent.ForkJoinPool; 54 53 import java.util.concurrent.ForkJoinWorkerThread; … … 1431 1430 } 1432 1431 }, 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 }; 1433 1445 } 1434 1446
Note:
See TracChangeset
for help on using the changeset viewer.