commit | 5201a8ca95a56cfe70657afaea96ba540787233d | [log] [download] |
---|---|---|
author | Chris Hennick <4961925+Pr0methean@users.noreply.github.com> | Fri Feb 09 15:02:26 2018 -0800 |
committer | GitHub <noreply@github.com> | Fri Feb 09 15:02:26 2018 -0800 |
tree | f4a5743d5d1ceec95c3bf90ac5f7ad91ca52a098 | |
parent | 679a0b4dafefc5795cc4e574925956c424591c20 [diff] |
getSession() now returns session.get() Directly returning an AtomicReference violates encapsulation, because callers can set it to another value without going through us. Plus, use of an AtomicReference is an implementation detail that OOP is supposed to abstract away.