From 7b43d19d77e99f22dbe5e483a7c369969778fbd8 Mon Sep 17 00:00:00 2001 From: Yaroslav Lepenkin Date: Thu, 16 Feb 2017 12:21:57 +0300 Subject: [PATCH] [parameter hints] ugly code replaced with Map.forEach --- .../hints/settings/ParameterNameHintsConfigurable.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/hints/settings/ParameterNameHintsConfigurable.java b/platform/lang-impl/src/com/intellij/codeInsight/hints/settings/ParameterNameHintsConfigurable.java index 969a3b8f293a..6791e43f51e2 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/hints/settings/ParameterNameHintsConfigurable.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/hints/settings/ParameterNameHintsConfigurable.java @@ -145,12 +145,7 @@ public class ParameterNameHintsConfigurable extends DialogWrapper { Language language = (Language)myCurrentLanguageCombo.getModel().getSelectedItem(); myBlackLists.put(language, myEditorTextField.getText()); - myBlackLists.entrySet().forEach((entry) -> { - Language lang = entry.getKey(); - String text = entry.getValue(); - storeBlackListDiff(lang, text); - }); - + myBlackLists.forEach((lang, text) -> storeBlackListDiff(lang, text)); myOptions.forEach((option, checkBox) -> option.set(checkBox.isSelected())); }