jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1854647 - /jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java
Date Sat, 02 Mar 2019 14:32:52 GMT
Author: fschumacher
Date: Sat Mar  2 14:32:51 2019
New Revision: 1854647

URL: http://svn.apache.org/viewvc?rev=1854647&view=rev
Log:
Rename internal variables to make intent clearer

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java?rev=1854647&r1=1854646&r2=1854647&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java Sat Mar  2 14:32:51
2019
@@ -47,7 +47,7 @@ import org.slf4j.LoggerFactory;
  *
  */
 public class SampleResult implements Serializable, Cloneable, Searchable {
-    private static final Byte BYTE = Byte.valueOf((byte)0);
+    private static final Byte MARKER = Byte.valueOf((byte) 0);
     private static final long serialVersionUID = 241L;
 
     // Needs to be accessible from Test code
@@ -500,8 +500,8 @@ public class SampleResult implements Ser
      * @return <code>true</code> if the result was previously marked
      */
     public boolean markFile(String filename) {
-        Byte result = files.putIfAbsent(filename, BYTE);
-        return result != null;
+        Byte previousMarker = files.putIfAbsent(filename, MARKER);
+        return previousMarker != null;
     }
 
     public String getResponseCode() {



Mime
View raw message