Skip to content

Commit 8b12a4e

Browse files
committed
Add missing clone
1 parent 75f9a67 commit 8b12a4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/software/xdev/saveactions/processors/BuildProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public enum BuildProcessor implements Processor
8686
.build();
8787
AnActionEvent event = AnActionEvent.createEvent(
8888
dataContext,
89-
anAction.getTemplatePresentation(),
89+
anAction.getTemplatePresentation().clone(),
9090
UNKNOWN,
9191
ActionUiKind.NONE,
9292
null);

src/test/java/software/xdev/saveactions/core/action/ShortcutActionConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static void runFixure(final CodeInsightTestFixture fixture)
3737
// call plugin on document
3838
final AnActionEvent event = AnActionEvent.createEvent(
3939
dataContext,
40-
action.getTemplatePresentation(),
40+
action.getTemplatePresentation().clone(),
4141
"save-actions",
4242
ActionUiKind.NONE,
4343
null);

0 commit comments

Comments
 (0)