From 0b84d2442ea178dc9989a239f26be28327476c48 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 28 Apr 2015 09:24:26 +0000
Subject: [PATCH] AutoRefactor'ed use diamond operator
---
opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/PerformanceRunner.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/PerformanceRunner.java b/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/PerformanceRunner.java
index 17b60b3..cd094c3 100644
--- a/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/PerformanceRunner.java
+++ b/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/PerformanceRunner.java
@@ -108,7 +108,7 @@
* Keys (Long in microseconds) of this map must respect this pattern: n * 500 000 + 5 000 000,
* where n is a natural integer.
*/
- private final ConcurrentSkipListMap<Long, AtomicLong> bigEtimes = new ConcurrentSkipListMap<Long, AtomicLong>();
+ private final ConcurrentSkipListMap<Long, AtomicLong> bigEtimes = new ConcurrentSkipListMap<>();
/**
* Initialize both index2Frequency and index2Etime arrays.
@@ -159,8 +159,8 @@
* percentiles.
*/
List<Long> getPercentile(double[] percentiles, long nbData) {
- List<Long> responseTimes = new ArrayList<Long>();
- Queue<Long> nbDataThresholds = new LinkedList<Long>();
+ List<Long> responseTimes = new ArrayList<>();
+ Queue<Long> nbDataThresholds = new LinkedList<>();
long nbDataSum = nbData;
for (int i = percentiles.length - 1; i >= 0; i--) {
@@ -669,7 +669,7 @@
protected final IntegerArgument maxIterationsArgument;
protected final IntegerArgument warmUpArgument;
- private final List<Thread> workerThreads = new ArrayList<Thread>();
+ private final List<Thread> workerThreads = new ArrayList<>();
PerformanceRunner(final PerformanceRunnerOptions options) throws ArgumentException {
ArgumentParser argParser = options.getArgumentParser();
@@ -850,7 +850,7 @@
}
final int run(final ConnectionFactory connectionFactory) {
- final List<Connection> connections = new ArrayList<Connection>();
+ final List<Connection> connections = new ArrayList<>();
Connection connection = null;
try {
--
Gitblit v1.10.0