Skip to content

Commit

Permalink
Copy contents of the scheduledJobIds
Browse files Browse the repository at this point in the history
  • Loading branch information
dakrone committed Mar 12, 2019
1 parent 54ac17c commit c5f7738
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import java.time.Clock;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Objects;
Expand Down Expand Up @@ -139,7 +140,7 @@ public void stop() {
}

public Set<String> scheduledJobIds() {
return Collections.unmodifiableSet(schedules.keySet());
return Collections.unmodifiableSet(new HashSet<>(schedules.keySet()));
}

public void add(Job job) {
Expand Down

0 comments on commit c5f7738

Please sign in to comment.