4 Commits

Author SHA1 Message Date
Mike Kobit
07a77ba11d Fix - Shutdown the ExecutorService in App so that the resources are collected and the process can finish
I ran App.main(String[] args) in the 'double-checked-locking' module and the process does not terminate. This is because the executor service still has open threads. I'm not sure how the JUnit tests are run, but it seems they are handling the leftover resources themselves.

Also, minor modifications to Inventory for final fields are used since there is no state change around them, and added some more meaningful printing so the example is more clearly demonstrated
2015-10-14 07:01:15 -05:00
Ilkka Seppala
e32b440a38 Improve Double Checked Locking Javadoc 2015-10-03 21:00:21 +03:00
Ilkka Seppala
57e702db4f #107 Double Checked Locking example JavaDoc 2015-08-18 22:29:35 +03:00
Ilkka Seppala
3d488ec15a #108 Consistent package naming throughout the examples 2015-07-24 11:32:22 +03:00