refactor executeThreads

This commit is contained in:
pivovarit 2017-05-15 08:01:51 +02:00
parent 9ec6e18552
commit 00ecdb4a02
1 changed files with 1 additions and 3 deletions

View File

@ -66,9 +66,7 @@ public class SharedObjectWithLockManualTest {
private void executeThreads(SharedObjectWithLock object, int threadCount, ExecutorService service) {
for (int i = 0; i < threadCount; i++) {
service.execute(() -> {
object.perform();
});
service.execute(object::perform);
}
}