Back to Intellij Community

CommentedOutCode

java/java-impl/resources/inspectionDescriptions/CommentedOutCode.html

2025.3-rc-2287 B
Original Source

Reports comments that contain Java code.

Usually, code that is commented out gets outdated very quickly and becomes misleading. As most projects use some kind of version control system, it is better to delete commented out code completely and use the VCS history instead.

New in 2020.3