This commit is contained in:
Robert M und David R
2016-04-06 21:56:46 +02:00
parent dc7c36f65c
commit e8686552e7

View File

@@ -16,7 +16,7 @@ public class MethodNamingConventionsRule extends AbstractApexRule {
}
public Object visit(ASTMethod node, Object data) {
if (isOverriddenMethod(node) || isPropertyAccessor(node)) {
if (isOverriddenMethod(node) || isPropertyAccessor(node) || isConstructor(node)) {
return data;
}
@@ -38,4 +38,8 @@ public class MethodNamingConventionsRule extends AbstractApexRule {
private boolean isPropertyAccessor(ASTMethod node) {
return (node.getParentsOfType(ASTProperty.class).size() > 0);
}
private boolean isConstructor(ASTMethod node) {
return (node.getNode().getMethodInfo().isConstructor());
}
}