From d6296bd85fb3981124ebd0bbe855c7f9f2a1ec7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fournier?= Date: Fri, 10 Jan 2020 20:22:57 +0100 Subject: [PATCH] Fix apex multifile tests --- .../sourceforge/pmd/lang/apex/ast/ApexParsingHelper.java | 7 +++++++ .../net/sourceforge/pmd/lang/ast/test/BaseParsingHelper.kt | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pmd-apex/src/test/java/net/sourceforge/pmd/lang/apex/ast/ApexParsingHelper.java b/pmd-apex/src/test/java/net/sourceforge/pmd/lang/apex/ast/ApexParsingHelper.java index 6b2dfecf23..5fb0ea501d 100644 --- a/pmd-apex/src/test/java/net/sourceforge/pmd/lang/apex/ast/ApexParsingHelper.java +++ b/pmd-apex/src/test/java/net/sourceforge/pmd/lang/apex/ast/ApexParsingHelper.java @@ -4,6 +4,8 @@ package net.sourceforge.pmd.lang.apex.ast; +import net.sourceforge.pmd.lang.LanguageVersion; +import net.sourceforge.pmd.lang.LanguageVersionHandler; import net.sourceforge.pmd.lang.apex.ApexLanguageModule; import net.sourceforge.pmd.lang.ast.RootNode; import net.sourceforge.pmd.lang.ast.test.BaseParsingHelper; @@ -22,4 +24,9 @@ public class ApexParsingHelper extends BaseParsingHelper, T : RootNode /** * Called only if [Params.doProcess] is true. */ - protected open fun postProcessing(handler: LanguageVersionHandler, lversion: LanguageVersion, rootNode: T?) { + protected open fun postProcessing(handler: LanguageVersionHandler, lversion: LanguageVersion, rootNode: T) { val astAnalysisContext = object : AstAnalysisContext { override fun getTypeResolutionClassLoader(): ClassLoader = javaClass.classLoader