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

fschumacher 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 5eec17b  Use Integer#parseInt instead of valueOf, as we need the int 
and not the Integer
5eec17b is described below

commit 5eec17b76c7102032be10ccd40e59f8ab69a814d
Author: Felix Schumacher <felix.schumac...@internetallee.de>
AuthorDate: Sun Aug 30 15:47:23 2020 +0200

    Use Integer#parseInt instead of valueOf, as we need the int and not the 
Integer
---
 .../java/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java | 2 +-
 .../java/org/apache/jmeter/protocol/http/proxy/gui/RecorderDialog.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java
 
b/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java
index da28751..58946c3 100644
--- 
a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java
+++ 
b/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java
@@ -969,7 +969,7 @@ public class ProxyControlGui extends LogicControllerGui 
implements JMeterGUIComp
         JTextField counterValue = new JTextField(10);
         labelSetCounter.setLabelFor(counterValue);
         JButton buttonSetCounter = new 
JButton(JMeterUtils.getResString("sample_creator_set_counter"));
-        buttonSetCounter.addActionListener(e -> 
Proxy.setCounter(Integer.valueOf(counterValue.getText())));
+        buttonSetCounter.addActionListener(e -> 
Proxy.setCounter(Integer.parseInt(counterValue.getText())));
         panel.add(labelSetCounter);
         panel.add(counterValue);
         panel.add(buttonSetCounter);
diff --git 
a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/proxy/gui/RecorderDialog.java
 
b/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/proxy/gui/RecorderDialog.java
index 5742847..5cf827c 100644
--- 
a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/proxy/gui/RecorderDialog.java
+++ 
b/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/proxy/gui/RecorderDialog.java
@@ -164,7 +164,7 @@ public class RecorderDialog extends JDialog implements 
ItemListener, KeyListener
         JTextField counterValue = new JTextField(10);
         labelSetCounter.setLabelFor(counterValue);
         JButton buttonSetCounter = new 
JButton(JMeterUtils.getResString("sample_creator_set_counter"));
-        buttonSetCounter.addActionListener(e -> 
Proxy.setCounter(Integer.valueOf(counterValue.getText())));
+        buttonSetCounter.addActionListener(e -> 
Proxy.setCounter(Integer.parseInt(counterValue.getText())));
         panel.add(labelSetCounter);
         panel.add(counterValue);
         panel.add(buttonSetCounter);

Reply via email to