jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1773042 - in /jmeter/trunk/src/core/org/apache/jmeter: report/processor/Top5ErrorsSummaryData.java util/HostNameSetter.java
Date Wed, 07 Dec 2016 10:17:07 GMT
Author: sebb
Date: Wed Dec  7 10:17:06 2016
New Revision: 1773042

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

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/report/processor/Top5ErrorsSummaryData.java
    jmeter/trunk/src/core/org/apache/jmeter/util/HostNameSetter.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/Top5ErrorsSummaryData.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/Top5ErrorsSummaryData.java?rev=1773042&r1=1773041&r2=1773042&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/Top5ErrorsSummaryData.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/Top5ErrorsSummaryData.java Wed
Dec  7 10:17:06 2016
@@ -38,7 +38,7 @@ public class Top5ErrorsSummaryData {
     /**
      */
     public Top5ErrorsSummaryData() {
-        countPerError = new HashMap<String, Long>();
+        countPerError = new HashMap<>();
     }
 
     /**
@@ -87,7 +87,7 @@ public class Top5ErrorsSummaryData {
      * @return array of [String, Long]
      */
     public Object[][] getTop5ErrorsMetrics() {
-        SortedSet<Map.Entry<String, Long>> reverseSortedSet = new TreeSet<Map.Entry<String,
Long>>(
+        SortedSet<Map.Entry<String, Long>> reverseSortedSet = new TreeSet<>(
                 new Comparator<Map.Entry<String, Long>>() {
                     @Override
                     public int compare(Map.Entry<String, Long> e1,

Modified: jmeter/trunk/src/core/org/apache/jmeter/util/HostNameSetter.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/util/HostNameSetter.java?rev=1773042&r1=1773041&r2=1773042&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/util/HostNameSetter.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/util/HostNameSetter.java Wed Dec  7 10:17:06 2016
@@ -39,7 +39,7 @@ public class HostNameSetter {
     private final WeakReference<Method> setter;
 
     private HostNameSetter(Class<?> clazz, Method setter) {
-        this.cls = new WeakReference<Class<?>>(clazz);
+        this.cls = new WeakReference<>(clazz);
         this.setter = setter == null ? null : new WeakReference<>(setter);
     }
 



Mime
View raw message