src/share/classes/java/lang/ApplicationShutdownHooks.java

Print this page
rev 3186 : 6880112: Project Coin: Port JDK core library code to use diamond operator

*** 45,55 **** public void run() { runHooks(); } } ); ! hooks = new IdentityHashMap<Thread, Thread>(); } catch (IllegalStateException e) { // application shutdown hooks cannot be added if // shutdown is in progress. hooks = null; } --- 45,55 ---- public void run() { runHooks(); } } ); ! hooks = new IdentityHashMap<>(); } catch (IllegalStateException e) { // application shutdown hooks cannot be added if // shutdown is in progress. hooks = null; }