I am reading Java Concurrency in Practice and kind of confused with the thread confinement concept. The book says that
When an object is confined to a
I means that only code running in one thread accesses the object.
When this is the case, the object doesn't need to be "thread safe"