Suppressing Java Findbugs error (EI_EXPOSE_REP)

前端 未结 2 736
忘掉有多难
忘掉有多难 2021-01-18 07:44

I have a Java gettor method that looks like the following:

import java.util.Date;
//...
public Date getSomeDate() {
  return someDate;
}

an

2条回答
  •  伪装坚强ぢ
    2021-01-18 08:45

    I just realized that Findbugs analyzes compiled code (.class files), not source code. After rebuilding and re-running Findbugs, the problem went away.

提交回复
热议问题