comments that contain Java code. Usually code that is commented out"/>
Android Reports comments that contain Java code. Usually code that is commented out
- 告警信息
Reports comments that contain Java code. Usually code that is commented out gets outdated very fast and becomes misleading. As most of the projects use some kind of version control system, it is better to delete commented out code completely and use VCS history instead.
- 解决办法
将 /**/注释部分从 方法中拿出来
最新版本的 Idea/AndriudStudio 推荐使用VCS hIstory 版本记录来处理删除的代码,而不是使用 注释,注释方案较之于版本管理方案风险较高,推荐在删除代码时就要做一次版本提交,亦或是通过VCS寻找
最终效果 将注释部分从方法中拿出来以后 此黄色代码告警消失
- Android Studio 中 VCS 的使用介绍
VCS 使用案列
入口
注意区分Git和 VCS 点击 show history
更多推荐
Android Reports comments that contain Java code. Usually code that is commented
发布评论