--- a/jdk/src/share/classes/java/lang/management/PlatformComponent.java Sat Dec 18 09:10:49 2010 -0800
+++ b/jdk/src/share/classes/java/lang/management/PlatformComponent.java Mon Dec 20 13:47:04 2010 -0800
@@ -267,7 +267,7 @@
List<T> getGcMXBeanList(Class<T> gcMXBeanIntf) {
List<GarbageCollectorMXBean> list =
ManagementFactoryHelper.getGarbageCollectorMXBeans();
- List<T> result = new ArrayList<T>(list.size());
+ List<T> result = new ArrayList<>(list.size());
for (GarbageCollectorMXBean m : list) {
if (gcMXBeanIntf.isInstance(m)) {
result.add(gcMXBeanIntf.cast(m));
@@ -330,7 +330,7 @@
}
private static Set<String> keyProperties(String... keyNames) {
- Set<String> set = new HashSet<String>();
+ Set<String> set = new HashSet<>();
set.add("type");
for (String s : keyNames) {
set.add(s);
@@ -364,7 +364,7 @@
List<T> getMXBeans(MBeanServerConnection mbs, Class<T> mxbeanInterface)
throws java.io.IOException
{
- List<T> result = new ArrayList<T>();
+ List<T> result = new ArrayList<>();
for (ObjectName on : getObjectNames(mbs)) {
result.add(ManagementFactory.
newPlatformMXBeanProxy(mbs,