does these code has memory leakage?

后端 未结 4 719
暖寄归人
暖寄归人 2020-12-12 07:59
static private       ArrayList   seriesColors      = new ArrayList();

public Audiogram(int widthParm, int heightParm)
            throws Exception
    {
        sup         


        
4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-12 08:16

    A collection utilising weak references is generally the solution to the kind of problem in your first example.

    See: http://download.oracle.com/javase/1.4.2/docs/api/java/lang/ref/WeakReference.html

提交回复
热议问题