Author: fschumacher
Date: Sun Mar 20 11:55:29 2016
New Revision: 1735868
URL: http://svn.apache.org/viewvc?rev=1735868&view=rev
Log:
Remove useless initialization. Based on patch by Graham.
Modified:
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Modified:
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
URL:
http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java?rev=1735868&r1=1735867&r2=1735868&view=diff
==============================================================================
---
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
(original)
+++
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Sun Mar 20 11:55:29 2016
@@ -578,7 +578,7 @@ public abstract class HTTPSamplerBase ex
log.debug("adding argument: name: " + name + " value: " + value +
" metaData: " + metaData + " contentEncoding: " + contentEncoding);
}
- HTTPArgument arg = null;
+ HTTPArgument arg;
final boolean nonEmptyEncoding = !StringUtils.isEmpty(contentEncoding);
if (nonEmptyEncoding) {
arg = new HTTPArgument(name, value, metaData, true,
contentEncoding);
@@ -587,7 +587,7 @@ public abstract class HTTPSamplerBase ex
}
// Check if there are any difference between name and value and their
encoded name and value
- String valueEncoded = null;
+ String valueEncoded;
if (nonEmptyEncoding) {
try {
valueEncoded = arg.getEncodedValue(contentEncoding);