示例

public class ClassA {
private Object o;
public void methodA {

o=null;
//o is not changed afterwards...
}


}
解决方案 重新考虑私有字段“o”的使用