Skip to content

Commit

Permalink
Fix format violations
Browse files Browse the repository at this point in the history
  • Loading branch information
bgprudhomme committed Oct 9, 2024
1 parent 0db7983 commit b4dce20
Showing 1 changed file with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,19 @@ public void multiThread() throws InterruptedException {
Thread[] threads = new Thread[numberOfThreads];

for (int i = 0; i < numberOfThreads; i++) {
Thread t = Thread.ofVirtual().unstarted(() -> {
try {
for (int j = 0; j < loops; j++) {
ensureAccurateReservations(parent);
}
} catch (Exception ex) {
ex.printStackTrace();
fail(ex.getMessage());
}
});
Thread t =
Thread.ofVirtual()
.unstarted(
() -> {
try {
for (int j = 0; j < loops; j++) {
ensureAccurateReservations(parent);
}
} catch (Exception ex) {
ex.printStackTrace();
fail(ex.getMessage());
}
});
threads[i] = t;
t.start();
}
Expand Down

0 comments on commit b4dce20

Please sign in to comment.