“Leaking this” from a Design Standpoint
问题 Warning: Leaking "this" in constructor I keep running into this, and I have a nagging feeling that it's because my design is wrong or not optimal. I understand that this warning is bringing to my attention the fact that I am allowing access to an object that is potentially not fully initialized. Let's say that I need a Frame that HAS and requires a List (Frame(List list)). In List, I might want to do something such as add(). In order to make sure Frame knows as little about List as possible