equal
deleted
inserted
replaced
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 } |