File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
core/src/com/google/inject/internal Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1515 */
1616package com .google .inject .internal ;
1717
18- import com .google .common .collect .Ordering ;
18+ import com .google .common .collect .Comparators ;
1919import java .lang .reflect .Field ;
2020import java .lang .reflect .Method ;
2121import java .util .Arrays ;
@@ -50,10 +50,10 @@ public static Method[] getDeclaredMethods(Class<?> type) {
5050 Comparator .comparing (Method ::getName )
5151 .thenComparing (Method ::getReturnType , Comparator .comparing (Class ::getName ))
5252 .thenComparing (
53- method -> Arrays .asList (method .getParameterTypes ()),
54- // TODO: use Comparators.lexicographical when it's not @Beta.
55- Ordering .< Class <?>> from ( Comparator . comparing ( Class :: getName ) )
56- . lexicographical ()) )
53+ method -> Arrays .asList (method .getParameterTypes ()),
54+ Comparators .lexicographical ( Comparator . comparing ( Class :: getName ))
55+ )
56+ )
5757 .toArray (Method []::new );
5858 }
5959}
You can’t perform that action at this time.
0 commit comments