jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1380871 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Date Tue, 04 Sep 2012 20:40:26 GMT
Author: pmouawad
Date: Tue Sep  4 20:40:26 2012
New Revision: 1380871

URL: http://svn.apache.org/viewvc?rev=1380871&view=rev
Log:
Make some fields final

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=1380871&r1=1380870&r2=1380871&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
Tue Sep  4 20:40:26 2012
@@ -300,7 +300,7 @@ public abstract class HTTPSamplerBase ex
 
     // Bug 49083
     /** Whether to remove '/pathsegment/..' from redirects; default true */
-    private static boolean REMOVESLASHDOTDOT = JMeterUtils.getPropDefault("httpsampler.redirect.removeslashdotdot",
true);
+    private static final boolean REMOVESLASHDOTDOT = JMeterUtils.getPropDefault("httpsampler.redirect.removeslashdotdot",
true);
 
     ////////////////////// Code ///////////////////////////
 
@@ -1793,7 +1793,7 @@ public abstract class HTTPSamplerBase ex
      *
      */
     private static class CleanerThread extends Thread {
-        private List<HTTPSamplerBase> samplersToNotify = new ArrayList<HTTPSamplerBase>();
+        private final List<HTTPSamplerBase> samplersToNotify = new ArrayList<HTTPSamplerBase>();
         /**
          * @param runnable Runnable
          */
@@ -1824,8 +1824,8 @@ public abstract class HTTPSamplerBase ex
      * Holder of AsynSampler result
      */
     private static class AsynSamplerResultHolder {
-        private HTTPSampleResult result;
-        private CollectionProperty cookies;
+        private final HTTPSampleResult result;
+        private final CollectionProperty cookies;
         /**
          * @param result
          * @param cookies



Mime
View raw message