Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2021-07-30 15:24:14 +0000
committerLars Vogel2021-08-12 11:16:07 +0000
commitce73385f7bcb29281828915f43548c73a3400b04 (patch)
treecd42a1f6907f6ccb5961eb791f8f359973a86dd4
parent5143924c24f9fe9c69fdf72fa1a0ac14c895ddf0 (diff)
downloadeclipse.platform.debug-ce73385f7bcb29281828915f43548c73a3400b04.tar.gz
eclipse.platform.debug-ce73385f7bcb29281828915f43548c73a3400b04.tar.xz
eclipse.platform.debug-ce73385f7bcb29281828915f43548c73a3400b04.zip
[cleanup] Use Comparator.comparing
Done with the JDT UI cleanup action. Change-Id: I76fd57a8edd342753e683f90bddbca376d543c52 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com> Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.debug/+/183558 Tested-by: Platform Bot <platform-bot@eclipse.org>
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointOrganizerManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointOrganizerManager.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointOrganizerManager.java
index c1eab4725..f02f3569d 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointOrganizerManager.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointOrganizerManager.java
@@ -16,6 +16,7 @@ package org.eclipse.debug.internal.ui.views.breakpoints;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
+import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -117,7 +118,7 @@ public class BreakpointOrganizerManager {
Collection<IBreakpointOrganizer> collection = fOrganizers.values();
fSorted = new ArrayList<>();
fSorted.addAll(collection);
- Collections.sort(fSorted, (o1, o2) -> o1.getLabel().compareTo(o2.getLabel()));
+ Collections.sort(fSorted, Comparator.comparing(IBreakpointOrganizer::getLabel));
}
return fSorted.toArray(new IBreakpointOrganizer[fSorted.size()]);
}

Back to the top