Brian Goetz (Mr Concurrency) has finished Java Concurrency in Practice a book in which he has sweat blood and tears for sure.
If you mention anything to him right now he will immediately be able to tell you about the concurrency issues and how we have multicores now, and hence we will soon be screwed.
Someone was complaining about
list.getLast() instead of
Brian pointed out that this isn’t about ease of use, but that (of course):
list.getLast() would be atomic, whereas list.get(list.size()-1) would
not, and could throw NPE even for a nonempty list if a list element were
removed by another thread at just the wrong time.
Um, I’ve got to stop doing that.
Congrats on JCiP Brian.