#IDEA-CR-16002 code correction: code style in SdkType, optimize imports; shortened sorted sdk stream call

This commit is contained in:
Dmitry.Krasilschikov
2016-11-28 17:45:26 +03:00
parent d3794bcbba
commit 6a3217c6f6
2 changed files with 2 additions and 2 deletions
@@ -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;
}