From acc50ee94d47a0b07cec7f1a008f0f124f02f18a Mon Sep 17 00:00:00 2001 From: Nadim Ritter Date: Thu, 1 Feb 2024 16:41:40 +0100 Subject: [PATCH] make code java 8 compatible --- .../gui/service/session/ClientConnectionTable.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/service/session/ClientConnectionTable.java b/src/main/java/ch/ethz/seb/sebserver/gui/service/session/ClientConnectionTable.java index 6cc273fc..d28e6342 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/service/session/ClientConnectionTable.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/service/session/ClientConnectionTable.java @@ -827,7 +827,11 @@ public final class ClientConnectionTable implements FullPageMonitoringGUIUpdate final Set result = new HashSet<>(); for (int i = 0; i < selectionIndices.length; i++) { - UpdatableTableItem item = this.tableMapping.values().stream().toList().get(selectionIndices[i]); + UpdatableTableItem item = this.tableMapping.values() + .stream() + .collect(Collectors.toList()) + .get(selectionIndices[i]); + result.add(item.staticData.connectionToken); }