mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
use Comparator.comparing
This commit is contained in:
@@ -27,8 +27,6 @@ import java.util.Comparator;
|
||||
* Date: 10/7/13
|
||||
*/
|
||||
public class DecompiledLocalVariable{
|
||||
public static final Comparator<DecompiledLocalVariable> COMPARATOR = (v1, v2) -> v1.getSlot() - v2.getSlot();
|
||||
|
||||
private final int mySlot;
|
||||
private final String mySignature;
|
||||
private final boolean myIsParam;
|
||||
|
||||
@@ -303,7 +303,7 @@ public class LocalVariablesUtil {
|
||||
}
|
||||
|
||||
List<DecompiledLocalVariable> vars = new ArrayList<>(usedVars.values());
|
||||
Collections.sort(vars, DecompiledLocalVariable.COMPARATOR);
|
||||
vars.sort(Comparator.comparingInt(DecompiledLocalVariable::getSlot));
|
||||
return vars;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user