'Is there a way to suppress warning "Commented out code (n lines)" in Android Studio?

I know, its not a good practice, but is there a way in Android Studio to suppress warning "Commented out code (n lines)"?



Solution 1:[1]

Adding noinspection to the first line of the comment works for me:

/* noinspection
 multiline 
 comment
 goes
 here
*/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Al.