Android的官方文档是这样建议的:

对于Activity:
Note: Your implementation of these lifecycle methods must always call the superclass implementation before doing any work, as shown in the examples above.
即首先调用super.detory()


对于App Service:
Unlike the activity lifecycle callback methods, you are not required to call the superclass implementation of these callback methods.
不是强制需要调用,因为在父类service中,是个空实现。


注意:pmd对于android的检查结果是错误的。