mirror of https://github.com/apache/jmeter.git
Updated the `createMenuItem` method to use a more descriptive variable name `menuItem` for clarity and consistency.
This commit is contained in:
parent
423c00b22e
commit
be0cf3a661
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue