Skip to content

Commit

Permalink
Updated the createMenuItem method to use a more descriptive variabl…
Browse files Browse the repository at this point in the history
…e name `menuItem` for clarity and consistency.
  • Loading branch information
xbilek26 authored and vlsi committed Nov 30, 2024
1 parent 423c00b commit be0cf3a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit be0cf3a

Please sign in to comment.