Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Prevent ConcurrentModificationExceptions that have been showing up in…
Browse files Browse the repository at this point in the history
… the

Jenkins test runs of this class.
  • Loading branch information
jshaughn committed Sep 18, 2014
1 parent 008dba2 commit c26c91a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,10 @@ private void printJobsCompleted() {
if (jobsCompleted == null || jobsCompleted.isEmpty()) {
println("jobsCompleted is null/empty");
} else {
for (String op : jobsCompleted.keySet()) {
println(op + " completed at " + formatTime(jobsCompleted.get(op)));
synchronized (jobsCompleted) {
for (String op : jobsCompleted.keySet()) {
println(op + " completed at " + formatTime(jobsCompleted.get(op)));
}
}
}
}
Expand Down

0 comments on commit c26c91a

Please sign in to comment.