Sunday, 20 March 2016

CheckStyle Coding practices - Dead code


Rules to remove dead code - provided by CheckStyle

EmptyBlock
Checks for empty blocks.

EmptyForInitializerPad
Checks the padding of an empty for initializer; that is whether a space is required at an empty for initializer, or such spaces are forbidden.

EmptyForIteratorPad
Checks the padding of an empty for iterator; that is whether a space is required at an empty for iterator, or such spaces are forbidden.

EmptyStatement
Detects empty statements ( standalone ; )

No comments:

Post a Comment

Note: only a member of this blog may post a comment.