From acd710a8f3a184f60533ee06d2fe2b3af9665362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fournier?= Date: Tue, 1 Aug 2017 15:41:56 +0200 Subject: [PATCH 1/2] Fix broken Apex visitor adapter --- .../pmd/lang/apex/ast/ApexParserVisitorAdapter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ApexParserVisitorAdapter.java b/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ApexParserVisitorAdapter.java index fcbb799aac..d17eff0760 100644 --- a/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ApexParserVisitorAdapter.java +++ b/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ApexParserVisitorAdapter.java @@ -7,8 +7,7 @@ package net.sourceforge.pmd.lang.apex.ast; public class ApexParserVisitorAdapter implements ApexParserVisitor { @Override public Object visit(ApexNode node, Object data) { - node.childrenAccept(this, data); - return null; + return node.childrenAccept(this, data); } @Override From bb75cce2e7748f3479451341aa3697f6e5d6ca0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Sotuyo=20Dodero?= Date: Tue, 1 Aug 2017 11:24:16 -0300 Subject: [PATCH 2/2] Update changelog, refs #535 --- src/site/markdown/overview/changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/site/markdown/overview/changelog.md b/src/site/markdown/overview/changelog.md index 942bbc0cdd..5e2d8c86ff 100644 --- a/src/site/markdown/overview/changelog.md +++ b/src/site/markdown/overview/changelog.md @@ -109,4 +109,5 @@ Based on those metrics, rules like "GodClass" detection can be implemented more * [#525](https://github.com/pmd/pmd/pull/525): \[core] Fix line ending and not ignored files issues - [Matias Comercio](https://github.com/MatiasComercio) * [#528](https://github.com/pmd/pmd/pull/528): \[core] Fix typo - [Ayoub Kaanich](https://github.com/kayoub5) * [#530](https://github.com/pmd/pmd/pull/530): \[java] Fix issue #527: Lombok getter annotation on enum is not recognized correctly - [Clément Fournier](https://github.com/oowekyala) +* [#535](https://github.com/pmd/pmd/pull/535): \[apex] Fix broken Apex visitor adapter - [Clément Fournier](https://github.com/oowekyala)