properties: simplify lambda
authorDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Tue, 14 Jun 2016 03:35:24 +0000 (06:35 +0300)
committerDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Tue, 14 Jun 2016 03:35:24 +0000 (06:35 +0300)
plugins/properties/src/com/intellij/lang/properties/editor/ResourceBundleStructureViewComponent.java

index 6d73c3a1bdbefcb25a3779cc75528506e9973e6f..bb9691a4be0ba920f9b4e11f4a68ebbe786a6024 100644 (file)
@@ -37,12 +37,10 @@ import com.intellij.refactoring.safeDelete.SafeDeleteHandler;
 import com.intellij.ui.PopupHandler;
 import com.intellij.usages.UsageTarget;
 import com.intellij.usages.UsageView;
-import com.intellij.util.ArrayFactory;
 import com.intellij.util.NullableFunction;
 import com.intellij.util.containers.ContainerUtil;
 import org.jetbrains.annotations.NonNls;
 import org.jetbrains.annotations.NotNull;
-import org.jetbrains.annotations.Nullable;
 
 import java.awt.datatransfer.StringSelection;
 import java.util.ArrayList;
@@ -120,7 +118,7 @@ public class ResourceBundleStructureViewComponent extends PropertiesGroupingStru
           ContainerUtil.mapNotNull(selectedElements, (NullableFunction<ResourceBundleEditorViewElement, List<IProperty>>)element -> {
             final IProperty[] properties = element.getProperties();
             return properties == null ? null : ContainerUtil.newArrayList(properties);
-          })), count -> new IProperty[count]);
+          })), IProperty[]::new);
       }
     }
     else if (LangDataKeys.PSI_ELEMENT_ARRAY.is(dataId)) {