This is an automated email from the ASF dual-hosted git repository.

vladimirsitnikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new be0cf3a661 Updated the `createMenuItem` method to use a more 
descriptive variable name `menuItem` for clarity and consistency.
be0cf3a661 is described below

commit be0cf3a661ea9b84c7726b41e5c2dfaf5e42f5df
Author: František Bílek <[email protected]>
AuthorDate: Sat Nov 30 03:22:02 2024 +0100

    Updated the `createMenuItem` method to use a more descriptive variable name 
`menuItem` for clarity and consistency.
---
 .../org/apache/jmeter/threads/gui/AbstractThreadGroupGui.java  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

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 05ced0f6f5..de21598783 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 abstract class AbstractThreadGroupGui extends 
AbstractJMeterGuiComponent
     }
 
     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() {

Reply via email to