From 73d67c7a0a7976c83e2f4b8141869d697d023a6e Mon Sep 17 00:00:00 2001 From: Taylor Smock Date: Thu, 4 Jun 2020 14:09:25 -0600 Subject: [PATCH] FIXUP: a958a8f0 had two sorted in a row. The intent of the first sorted was to reverse the order, which the second sorted undid. Signed-off-by: Taylor Smock --- .../gui/preferences/mapwithai/MapWithAIProvidersPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openstreetmap/josm/plugins/mapwithai/gui/preferences/mapwithai/MapWithAIProvidersPanel.java b/src/main/java/org/openstreetmap/josm/plugins/mapwithai/gui/preferences/mapwithai/MapWithAIProvidersPanel.java index 7c2a6c9..9ccf234 100644 --- a/src/main/java/org/openstreetmap/josm/plugins/mapwithai/gui/preferences/mapwithai/MapWithAIProvidersPanel.java +++ b/src/main/java/org/openstreetmap/josm/plugins/mapwithai/gui/preferences/mapwithai/MapWithAIProvidersPanel.java @@ -734,7 +734,7 @@ public class MapWithAIProvidersPanel extends JPanel { }); } else { selected.stream().mapToInt(activeModel::getRowIndex).filter(i -> i >= 0).boxed() - .sorted(Collections.reverseOrder()).sorted().forEach(activeModel::removeRow); + .sorted(Collections.reverseOrder()).forEach(activeModel::removeRow); } updateEnabledState(); }