You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by se...@apache.org on 2017/02/22 17:16:15 UTC

svn commit: r1784042 - in /jmeter/trunk/src: core/org/apache/jmeter/util/JMeterUtils.java protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java

Author: sebb
Date: Wed Feb 22 17:16:15 2017
New Revision: 1784042

URL: http://svn.apache.org/viewvc?rev=1784042&view=rev
Log:
Unnecessary type spec

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java?rev=1784042&r1=1784041&r2=1784042&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java Wed Feb 22 17:16:15 2017
@@ -1176,7 +1176,7 @@ public class JMeterUtils implements Unit
             UIDefaults defaults = UIManager.getLookAndFeelDefaults();
             // If I iterate over the entrySet under ubuntu with jre 1.8.0_121
             // the font objects are missing, so iterate over the keys, only
-            for (Object key : new ArrayList<Object>(defaults.keySet())) {
+            for (Object key : new ArrayList<>(defaults.keySet())) {
                 Object value = defaults.get(key);
                 log.debug("Try key {} with value {}", key, value);
                 if (value instanceof Font) {

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java?rev=1784042&r1=1784041&r2=1784042&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java (original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java Wed Feb 22 17:16:15 2017
@@ -253,7 +253,7 @@ public class HTTPHC4Impl extends HTTPHCA
      * 1 HttpClient instance per combination of (HttpClient,HttpClientKey)
      */
     private static final ThreadLocal<Map<HttpClientKey, HttpClient>> HTTPCLIENTS_CACHE_PER_THREAD_AND_HTTPCLIENTKEY = 
-        InheritableThreadLocal.withInitial(() -> new HashMap<HttpClientKey, HttpClient>(5));
+        InheritableThreadLocal.withInitial(() -> new HashMap<>(5));
 
     // Scheme used for slow HTTP sockets. Cannot be set as a default, because must be set on an HttpClient instance.
     private static final Scheme SLOW_HTTP;