@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
((CustomApplication) getApplication()).detach(this);
}
在生成 PMD 报告时,我得到了这个错误:Super should be called at the end of the method。通常,您最终会将超级方法保留在顶部(第一条语句),以便首先调用它的父类来初始化。