[parameter hints] ugly code replaced with Map.forEach

This commit is contained in:
Yaroslav Lepenkin
2017-02-16 12:27:08 +03:00
parent e403426717
commit 7b43d19d77
@@ -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()));
}