From cd9fcff8f07605f066491610f4954c2aba4ac2ab Mon Sep 17 00:00:00 2001 From: anhefti Date: Wed, 31 Jan 2024 13:37:25 +0100 Subject: [PATCH] SEBSERV-478 review and optimizations --- .../gui/service/session/ClientConnectionTable.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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 bfc5dd04..869cb3e8 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 @@ -431,6 +431,9 @@ public final class ClientConnectionTable implements FullPageMonitoringGUIUpdate } private void sortTable() { + // SEBSERV-427 get all selected indices here and + + this.sortList.clear(); this.sortList.addAll(this.tableMapping.values()); Collections.sort(this.sortList); @@ -629,12 +632,6 @@ public final class ClientConnectionTable implements FullPageMonitoringGUIUpdate .thenComparingInt(UpdatableTableItem::thresholdsWeight) .thenComparing(UpdatableTableItem::getConnectionIdentifier) .compare(this, other); - -// return Comparator.comparing(UpdatableTableItem::getConnectionIdentifier) -// .thenComparingInt(UpdatableTableItem::thresholdsWeight) -// .thenComparingInt(UpdatableTableItem::notificationWeight) -// .thenComparingInt(UpdatableTableItem::statusWeight) -// .compare(this, other); } @Override