在一个类方法中看到这一行,我的第一反应是嘲笑编写它的开发人员..但是,我认为我应该确保我是对的.
public void dataViewActivated(DataViewEvent e) { if (this != null) // Do some work }
那条线路会被评估为假吗?
java this
java ×1
this ×1