From a89f7014aeb71dba5c94404dfea7eb89e7eeee74 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 08 Jul 2015 06:48:02 +0000
Subject: [PATCH] AutoRefactor'ed Use Diamond Operator
---
opendj-server-legacy/src/main/java/org/opends/server/protocols/http/HTTPClientConnection.java | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/HTTPClientConnection.java b/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/HTTPClientConnection.java
index 786cb80..82f5f8a 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/HTTPClientConnection.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/HTTPClientConnection.java
@@ -166,8 +166,7 @@
* The Map (messageID => {@link OperationWithPromise}) of all operations
* currently in progress on this connection.
*/
- private final Map<Integer, OperationWithPromise> operationsInProgress =
- new ConcurrentHashMap<Integer, OperationWithPromise>();
+ private final Map<Integer, OperationWithPromise> operationsInProgress = new ConcurrentHashMap<>();
/**
* The number of operations performed on this connection. Used to compare with
@@ -622,7 +621,7 @@
public Collection<Operation> getOperationsInProgress()
{
Collection<OperationWithPromise> values = operationsInProgress.values();
- Collection<Operation> results = new ArrayList<Operation>(values.size());
+ Collection<Operation> results = new ArrayList<>(values.size());
for (OperationWithPromise op : values)
{
results.add(op.operation);
--
Gitblit v1.10.0