File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
src/main/java/org/scijava/util Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 3636import java .lang .reflect .Modifier ;
3737import java .util .ArrayList ;
3838import java .util .Collections ;
39- import java .util .Comparator ;
4039import java .util .Map ;
4140
4241/**
@@ -105,13 +104,7 @@ public static String getStackDump() {
105104 // sort list of threads by name
106105 final ArrayList <Thread > threads =
107106 new ArrayList <>(stackTraces .keySet ());
108- Collections .sort (threads , new Comparator <Thread >() {
109-
110- @ Override
111- public int compare (final Thread t1 , final Thread t2 ) {
112- return t1 .getName ().compareTo (t2 .getName ());
113- }
114- });
107+ Collections .sort (threads , (t1 , t2 ) -> t1 .getName ().compareTo (t2 .getName ()));
115108
116109 for (final Thread t : threads ) {
117110 dumpThread (t , stackTraces .get (t ), sb );
You can’t perform that action at this time.
0 commit comments