Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/org/threeten/extra/LocalDateRange.java
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ public Comparator<? super LocalDate> getComparator() {
return null;
}
};
return StreamSupport.stream(spliterator, false);
return StreamSupport.stream(spliterator, false).parallel();
}

//-----------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/threeten/extra/scale/SystemUtcRules.java
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ private static Data loadLeapSeconds() {
private static Data loadLeapSeconds(URL url) throws ClassNotFoundException, IOException {
List<String> lines;
try (BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream(), StandardCharsets.UTF_8))) {
lines = reader.lines().collect(Collectors.toList());
lines = reader.lines().parallel().collect(Collectors.toList());
}
List<Long> dates = new ArrayList<>();
List<Integer> offsets = new ArrayList<>();
Expand Down