jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1769414 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java
Date Sat, 12 Nov 2016 20:36:05 GMT
Author: pmouawad
Date: Sat Nov 12 20:36:05 2016
New Revision: 1769414

URL: http://svn.apache.org/viewvc?rev=1769414&view=rev
Log:
pageEncodings is already wrapped in a synchronized Collection

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java?rev=1769414&r1=1769413&r2=1769414&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java (original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java Sat Nov
12 20:36:05 2016
@@ -588,9 +588,7 @@ public class Proxy extends Thread {
         }
         if (pageEncoding != null) {
             String urlWithoutQuery = getUrlWithoutQuery(result.getURL());
-            synchronized(pageEncodings) {
-                pageEncodings.put(urlWithoutQuery, pageEncoding);
-            }
+            pageEncodings.put(urlWithoutQuery, pageEncoding);
         }
         return pageEncoding;
     }



Mime
View raw message