Updated the `createMenuItem` method to use a more descriptive variable name `menuItem` for clarity and consistency.

This commit is contained in:
František Bílek 2024-11-30 03:22:02 +01:00 committed by Vladimir Sitnikov
parent 423c00b22e
commit be0cf3a661
1 changed files with 5 additions and 5 deletions

View File

@ -84,11 +84,11 @@ public abstract class AbstractThreadGroupGui extends AbstractJMeterGuiComponent
} }
private static JMenuItem createMenuItem(String name, String actionCommand) { private static JMenuItem createMenuItem(String name, String actionCommand) {
JMenuItem addThinkTimesToChildren = new JMenuItem(JMeterUtils.getResString(name)); JMenuItem menuItem = new JMenuItem(JMeterUtils.getResString(name));
addThinkTimesToChildren.setName(name); menuItem.setName(name);
addThinkTimesToChildren.addActionListener(ActionRouter.getInstance()); menuItem.addActionListener(ActionRouter.getInstance());
addThinkTimesToChildren.setActionCommand(actionCommand); menuItem.setActionCommand(actionCommand);
return addThinkTimesToChildren; return menuItem;
} }
private static JMenu createAddMenu() { private static JMenu createAddMenu() {