This rule is defined by the following XPath expression:
//ConstructorDeclaration[@Private='false'][count(BlockStatement) = 0 and ($ignoreExplicitConstructorInvocation = 'true' or not(ExplicitConstructorInvocation)) and @containsComment = 'false']
Example:
public Foo() { super(); }
This rule has the following properties:
Name | Default value | Description |
---|---|---|
ignoreExplicitConstructorInvocation | Ignore explicit constructor invocation when deciding whether constructor is empty or not |