diff options
Diffstat (limited to 'platform/platform-impl/src/com/intellij/ide/actionMacro/ActionMacroManager.java')
-rw-r--r-- | platform/platform-impl/src/com/intellij/ide/actionMacro/ActionMacroManager.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/platform/platform-impl/src/com/intellij/ide/actionMacro/ActionMacroManager.java b/platform/platform-impl/src/com/intellij/ide/actionMacro/ActionMacroManager.java index e53f24838bd2..c3573656b1f4 100644 --- a/platform/platform-impl/src/com/intellij/ide/actionMacro/ActionMacroManager.java +++ b/platform/platform-impl/src/com/intellij/ide/actionMacro/ActionMacroManager.java @@ -1,4 +1,4 @@ -// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.ide.actionMacro; import com.intellij.icons.AllIcons; @@ -52,7 +52,6 @@ import java.awt.*; import java.awt.event.InputEvent; import java.awt.event.KeyEvent; import java.awt.event.MouseEvent; -import java.util.List; import java.util.*; @State(name = "ActionMacroManager", storages = @Storage("macros.xml"), category = SettingsCategory.UI) @@ -471,14 +470,12 @@ public final class ActionMacroManager implements PersistentStateComponent<Elemen // fix references to and icons of renamed macros in the custom actions schema final CustomActionsSchema customActionsSchema = CustomActionsSchema.getInstance(); - final List<ActionUrl> actions = customActionsSchema.getActions(); - for (final ActionUrl actionUrl : actions) { + for (ActionUrl actionUrl : customActionsSchema.getActions()) { final String newId = renamingMap.get(actionUrl.getComponent()); if (newId != null) { actionUrl.setComponent(newId); } } - customActionsSchema.setActions(actions); for (Map.Entry<String, String> entry : renamingMap.entrySet()) { final String oldId = entry.getKey(); final String path = customActionsSchema.getIconPath(oldId); |