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() {