Possible duplicate:
How to disable a specific validation rule for a specific line of code?
When disabling Checkstyle, there is a syntax for the code segment that suppresses only certain checks.
Therefore, not just
// CHECKSTYLE: OFF
the code
// CHECKSTYLE: ON
you might have something like
// CHECKSTYLE: OFF: RequireThis,
the code
// CHECKSTYLE: ON
In cases where we intentionally make an exception for a style, it would be nice to be clearer about what the exception case is.
checkstyle suppression
Daniel Holmes
source share