From be0cf3a661ea9b84c7726b41e5c2dfaf5e42f5df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20B=C3=ADlek?= Date: Sat, 30 Nov 2024 03:22:02 +0100 Subject: [PATCH] Updated the `createMenuItem` method to use a more descriptive variable name `menuItem` for clarity and consistency. --- .../jmeter/threads/gui/AbstractThreadGroupGui.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/src/main/java/org/apache/jmeter/threads/gui/AbstractThreadGroupGui.java b/src/core/src/main/java/org/apache/jmeter/threads/gui/AbstractThreadGroupGui.java index 05ced0f6f54..de21598783d 100644 --- a/src/core/src/main/java/org/apache/jmeter/threads/gui/AbstractThreadGroupGui.java +++ b/src/core/src/main/java/org/apache/jmeter/threads/gui/AbstractThreadGroupGui.java @@ -84,11 +84,11 @@ public JPopupMenu createPopupMenu() { } private static JMenuItem createMenuItem(String name, String actionCommand) { - JMenuItem addThinkTimesToChildren = new JMenuItem(JMeterUtils.getResString(name)); - addThinkTimesToChildren.setName(name); - addThinkTimesToChildren.addActionListener(ActionRouter.getInstance()); - addThinkTimesToChildren.setActionCommand(actionCommand); - return addThinkTimesToChildren; + JMenuItem menuItem = new JMenuItem(JMeterUtils.getResString(name)); + menuItem.setName(name); + menuItem.addActionListener(ActionRouter.getInstance()); + menuItem.setActionCommand(actionCommand); + return menuItem; } private static JMenu createAddMenu() {