Indenting with 2 spaces

This commit is contained in:
Thabo Ntsoko 2019-12-28 21:58:53 +02:00
parent f87723e7ad
commit eb1683c933

View File

@ -22,9 +22,9 @@ public class PrimeNumbersUnitTest {
@Test @Test
public void givenPrimesCalculated_whenUsingPoolsAndOneThread_thenOneThreadSlowest() { public void givenPrimesCalculated_whenUsingPoolsAndOneThread_thenOneThreadSlowest() {
Options opt = new OptionsBuilder() Options opt = new OptionsBuilder()
.include(Benchmarker.class.getSimpleName()) .include(Benchmarker.class.getSimpleName())
.forks(1) .forks(1)
.build(); .build();
try { try {
new Runner(opt).run(); new Runner(opt).run();
@ -40,7 +40,7 @@ public class PrimeNumbersUnitTest {
for (int granularity : PrimeNumbers.GRANULARITIES) { for (int granularity : PrimeNumbers.GRANULARITIES) {
int parallelism = ForkJoinPool.getCommonPoolParallelism(); int parallelism = ForkJoinPool.getCommonPoolParallelism();
ForkJoinPool pool = ForkJoinPool pool =
(ForkJoinPool) Executors.newWorkStealingPool(parallelism); (ForkJoinPool) Executors.newWorkStealingPool(parallelism);
stealCountInfo(info, granularity, pool); stealCountInfo(info, granularity, pool);
} }