But this would mean that we deactivate the rule globally. I rather suggest to disable the rule for this specific code block: http://stackoverflow.com/questions/2640110/how-can-you-suppress-checkstyle-checks-within-a-block-of-code-only-for-specific