--- a/jdk/src/share/classes/java/util/logging/LogManager.java Sat Dec 18 09:10:49 2010 -0800
+++ b/jdk/src/share/classes/java/util/logging/LogManager.java Mon Dec 20 13:47:04 2010 -0800
@@ -156,8 +156,7 @@
private final static Level defaultLevel = Level.INFO;
// Table of named Loggers that maps names to Loggers.
- private Hashtable<String,LoggerWeakRef> namedLoggers =
- new Hashtable<String,LoggerWeakRef>();
+ private Hashtable<String,LoggerWeakRef> namedLoggers = new Hashtable<>();
// Tree of named Loggers
private LogNode root = new LogNode(null);
private Logger rootLogger;
@@ -422,7 +421,7 @@
// loggerRefQueue holds LoggerWeakRef objects for Logger objects
// that have been GC'ed.
private final ReferenceQueue<Logger> loggerRefQueue
- = new ReferenceQueue<Logger>();
+ = new ReferenceQueue<>();
// Package-level inner class.
// Helper class for managing WeakReferences to Logger objects.
@@ -672,7 +671,7 @@
name = "";
}
if (node.children == null) {
- node.children = new HashMap<String,LogNode>();
+ node.children = new HashMap<>();
}
LogNode child = node.children.get(head);
if (child == null) {
@@ -856,7 +855,7 @@
}
hands = hands.trim();
int ix = 0;
- Vector<String> result = new Vector<String>();
+ Vector<String> result = new Vector<>();
while (ix < hands.length()) {
int end = ix;
while (end < hands.length()) {