很明显,弱引用不再起作用。
有时推荐的一个处理失效侦听器的方法是使用弱引用。
One approach that is sometimes suggested for dealing with lapsed listeners is to use weak references.
如果已经分配了最低数量的对象,则对象的弱引用被放置到队列中。
If the minimum number of objects is already allocated, then a weak reference to the object is enqueued.
应用推荐