mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
#IDEA-CR-16002 code correction: code style in SdkType, optimize imports; shortened sorted sdk stream call
This commit is contained in:
@@ -317,7 +317,7 @@ public class JdkComboBox extends ComboBoxWithWidePopup {
|
||||
}
|
||||
}
|
||||
|
||||
return comparatorToSdkMap.entrySet().stream().flatMap(entry -> ContainerUtil.sorted(entry.getValue(), entry.getKey()).stream())
|
||||
return comparatorToSdkMap.entrySet().stream().flatMap(entry -> entry.getValue().stream().sorted(entry.getKey()))
|
||||
.toArray(size -> new Sdk[size]);
|
||||
}
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ public abstract class SdkType implements SdkTypeId {
|
||||
* If different sdk types return the same comparator object then they are sorted together.
|
||||
*/
|
||||
|
||||
public Comparator<Sdk> getComparator(){
|
||||
public Comparator<Sdk> getComparator() {
|
||||
return ALPHABETICAL_COMPARATOR;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user