Skip to content

Commit

Permalink
Fixed more jdk 11
Browse files Browse the repository at this point in the history
  • Loading branch information
mosemister committed Jan 20, 2024
1 parent 67ba007 commit daa6d83
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public boolean containsIgnoreCase(@NotNull String s) {
List<LegacyText> children = this.children
.parallelStream()
.map(lt -> (LegacyText) lt.withAllAsIgnoreCase(containing, aText))
.toList();
.collect(Collectors.toList());
return new LegacyText(this.colour, text, children);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public boolean run(CommandContext commandContext, String... args) throws NotEnou
CommandSource viewer = commandContext.getSource();
OperatingSystemMXBean osBean = ManagementFactory.getPlatformMXBean(OperatingSystemMXBean.class);
viewer.sendMessage(AText.ofPlain("Getting timings"));
viewer.sendMessage(AText.ofPlain("CPU usage: " + osBean.getCpuLoad()));
viewer.sendMessage(AText.ofPlain("CPU usage: " + osBean.getProcessCpuLoad()));
viewer.sendMessage(AText.ofPlain("CPU process usage: " + osBean.getProcessCpuLoad()));

new Thread(() -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public PendingTransactionsImpl(Collection<PendingTransaction> collection) {
.getCurrentResult()
.getTransactions()
.stream())
.toList());
.collect(Collectors.toList()));
}

@Override
Expand Down

0 comments on commit daa6d83

Please sign in to comment.