does these code has memory leakage?

后端 未结 4 720
暖寄归人
暖寄归人 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:19

    With regards to your first question, it's hard to say whether seriesColors would create a substantial memory issue without knowing more about how the rest of the program works. E.g., Are objects ever removed from seriesColors? How often is a new Audiogram created? How many Audiograms will be created over the runtime life of the program? Etc.

提交回复
热议问题