jdk/src/share/classes/java/lang/ApplicationShutdownHooks.java
changeset 7803 56bc97d69d93
parent 5506 202f599c92aa
child 9035 1255eb81cc2f
equal deleted inserted replaced
7802:74f2ee2b62ba 7803:56bc97d69d93
    45                     public void run() {
    45                     public void run() {
    46                         runHooks();
    46                         runHooks();
    47                     }
    47                     }
    48                 }
    48                 }
    49             );
    49             );
    50             hooks = new IdentityHashMap<Thread, Thread>();
    50             hooks = new IdentityHashMap<>();
    51         } catch (IllegalStateException e) {
    51         } catch (IllegalStateException e) {
    52             // application shutdown hooks cannot be added if
    52             // application shutdown hooks cannot be added if
    53             // shutdown is in progress.
    53             // shutdown is in progress.
    54             hooks = null;
    54             hooks = null;
    55         }
    55         }