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/monitors/MemoryUsageMonitorProvider.java | 19 ++++++-------------
1 files changed, 6 insertions(+), 13 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/monitors/MemoryUsageMonitorProvider.java b/opendj-server-legacy/src/main/java/org/opends/server/monitors/MemoryUsageMonitorProvider.java
index 1c51616..4cf3015 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/monitors/MemoryUsageMonitorProvider.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/monitors/MemoryUsageMonitorProvider.java
@@ -51,20 +51,13 @@
implements Runnable
{
/** A map of the last GC counts seen by this monitor for calculating recent stats. */
- private HashMap<String,Long> lastGCCounts = new HashMap<String,Long>();
-
+ private HashMap<String,Long> lastGCCounts = new HashMap<>();
/** A map of the last GC times seen by this monitor for calculating recent stats. */
- private HashMap<String,Long> lastGCTimes = new HashMap<String,Long>();
-
+ private HashMap<String,Long> lastGCTimes = new HashMap<>();
/** A map of the most recent GC durations seen by this monitor. */
- private HashMap<String,Long> recentGCDurations = new HashMap<String,Long>();
-
- /**
- * A map of the memory manager names to names that are safe for use in
- * attribute names.
- */
- private HashMap<String,String> gcSafeNames = new HashMap<String,String>();
-
+ private HashMap<String,Long> recentGCDurations = new HashMap<>();
+ /** A map of the memory manager names to names that are safe for use in attribute names. */
+ private HashMap<String,String> gcSafeNames = new HashMap<>();
/** {@inheritDoc} */
@@ -122,7 +115,7 @@
@Override
public ArrayList<Attribute> getMonitorData()
{
- ArrayList<Attribute> attrs = new ArrayList<Attribute>();
+ ArrayList<Attribute> attrs = new ArrayList<>();
for (GarbageCollectorMXBean gc :
ManagementFactory.getGarbageCollectorMXBeans())
--
Gitblit v1.10.0