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
commit 8c9328ca6c0ba59a80ba96d96a3d0f50219230b2 Author: Felix Schumacher <[email protected]> AuthorDate: Sun Aug 25 21:36:40 2019 +0200 Use Map#entrySet instead of keySet --- .../java/org/apache/jmeter/protocol/smtp/sampler/gui/SmtpPanel.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/protocol/mail/src/main/java/org/apache/jmeter/protocol/smtp/sampler/gui/SmtpPanel.java b/src/protocol/mail/src/main/java/org/apache/jmeter/protocol/smtp/sampler/gui/SmtpPanel.java index e24fecb..6381d2b 100644 --- a/src/protocol/mail/src/main/java/org/apache/jmeter/protocol/smtp/sampler/gui/SmtpPanel.java +++ b/src/protocol/mail/src/main/java/org/apache/jmeter/protocol/smtp/sampler/gui/SmtpPanel.java @@ -492,9 +492,9 @@ public class SmtpPanel extends JPanel { public CollectionProperty getHeaderFields() { CollectionProperty result = new CollectionProperty(); result.setName(SmtpSampler.HEADER_FIELDS); - for (JTextField headerName : headerFields.keySet()) { - String name = headerName.getText(); - String value = headerFields.get(headerName).getText(); + for (Map.Entry<JTextField, JTextField> header : headerFields.entrySet()) { + String name = header.getKey().getText(); + String value = header.getValue().getText(); Argument argument = new Argument(name, value); result.addItem(argument); }
