Skip to content

Commit be0cf3a

Browse files
xbilek26vlsi
authored andcommitted
Updated the createMenuItem method to use a more descriptive variable name menuItem for clarity and consistency.
1 parent 423c00b commit be0cf3a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/core/src/main/java/org/apache/jmeter/threads/gui/AbstractThreadGroupGui.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ public JPopupMenu createPopupMenu() {
8484
}
8585

8686
private static JMenuItem createMenuItem(String name, String actionCommand) {
87-
JMenuItem addThinkTimesToChildren = new JMenuItem(JMeterUtils.getResString(name));
88-
addThinkTimesToChildren.setName(name);
89-
addThinkTimesToChildren.addActionListener(ActionRouter.getInstance());
90-
addThinkTimesToChildren.setActionCommand(actionCommand);
91-
return addThinkTimesToChildren;
87+
JMenuItem menuItem = new JMenuItem(JMeterUtils.getResString(name));
88+
menuItem.setName(name);
89+
menuItem.addActionListener(ActionRouter.getInstance());
90+
menuItem.setActionCommand(actionCommand);
91+
return menuItem;
9292
}
9393

9494
private static JMenu createAddMenu() {

0 commit comments

Comments
 (0)