Author: fschumacher
Date: Mon Feb 12 17:50:21 2018
New Revision: 1824046

URL: http://svn.apache.org/viewvc?rev=1824046&view=rev
Log:
Use simpler variable names

Part of #356 on Github. Based on contribution by Graham Russell (graham at 
ham1.co.uk)

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/assertions/HTMLAssertion.java

Modified: 
jmeter/trunk/src/components/org/apache/jmeter/assertions/HTMLAssertion.java
URL: 
http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/assertions/HTMLAssertion.java?rev=1824046&r1=1824045&r2=1824046&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/assertions/HTMLAssertion.java 
(original)
+++ jmeter/trunk/src/components/org/apache/jmeter/assertions/HTMLAssertion.java 
Mon Feb 12 17:50:21 2018
@@ -188,17 +188,16 @@ public class HTMLAssertion extends Abstr
      * @param inOutput The String to write to file
      */
     private void writeOutput(String inOutput) {
-        String lFilename = getFilename();
+        String filename = getFilename();
 
         // check if filename defined
-        if (StringUtils.isNotBlank(lFilename)) {
-            
-            try (FileWriter lOutputWriter = new FileWriter(lFilename, false)){
+        if (StringUtils.isNotBlank(filename)) {
+            try (FileWriter writer = new FileWriter(filename, false)){
                 // write to file
-                lOutputWriter.write(inOutput);
-                log.debug("writeOutput() -> output successfully written to 
file: {}", lFilename);
+                writer.write(inOutput);
+                log.debug("writeOutput() -> output successfully written to 
file: {}", filename);
             } catch (IOException ex) {
-                log.warn("writeOutput() -> could not write output to file: 
{}", lFilename, ex);
+                log.warn("writeOutput() -> could not write output to file: 
{}", filename, ex);
             }
         }
     }


Reply via email to