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 97c969865abdb0c7e01731b856a234441367b499 Author: Felix Schumacher <[email protected]> AuthorDate: Wed Feb 2 12:06:07 2022 +0100 Use isEmtpy instead of checking length --- .../java/org/apache/jmeter/protocol/http/proxy/FormCharSetFinder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/proxy/FormCharSetFinder.java b/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/proxy/FormCharSetFinder.java index 84b595a..9588cde 100644 --- a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/proxy/FormCharSetFinder.java +++ b/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/proxy/FormCharSetFinder.java @@ -67,7 +67,7 @@ public class FormCharSetFinder { // Just use the first one of the possible many charsets if(charSets.length > 0) { formCharSet = charSets[0].trim(); - if(formCharSet.length() == 0) { + if (formCharSet.isEmpty()) { formCharSet = null; } }
