MALICIOUS_CODE EI_EXPOSE_REP Medium

后端 未结 5 2118
灰色年华
灰色年华 2020-12-31 03:21

I run findbugs against all of my code and only tackle the top stuff. I finally got the top stuff resolved and now am looking at the details. I have a simple entity, say a us

5条回答
  •  遥遥无期
    2020-12-31 03:24

    Adding to the good answer of Matt Solnit, I've faced the same problem when setting a attribute, so I did the same:

    public void setDataEmissaoNota (Date dataEmissaoNota)
    {
        this.dataEmissaoNota = new Date(dataEmissaoNota.getTime());
    }
    

    Work's fine!

提交回复
热议问题