diff --git a/idea-plugin/p3c-common/src/main/kotlin/com/alibaba/p3c/idea/pmd/SourceCodeProcessor.kt b/idea-plugin/p3c-common/src/main/kotlin/com/alibaba/p3c/idea/pmd/SourceCodeProcessor.kt index fb8a8cc..260be9f 100644 --- a/idea-plugin/p3c-common/src/main/kotlin/com/alibaba/p3c/idea/pmd/SourceCodeProcessor.kt +++ b/idea-plugin/p3c-common/src/main/kotlin/com/alibaba/p3c/idea/pmd/SourceCodeProcessor.kt @@ -80,13 +80,11 @@ class SourceCodeProcessor(private val configuration: PMDConfiguration) { } private fun usesDFA(languageVersion: LanguageVersion, rootNode: Node, ruleSets: RuleSets) { - if (ruleSets.usesDFA(languageVersion.language)) { - val start = System.nanoTime() - val dataFlowFacade = languageVersion.languageVersionHandler.dataFlowFacade - dataFlowFacade.start(rootNode) - val end = System.nanoTime() - Benchmarker.mark(Benchmark.DFA, end - start, 0) - } + val start = System.nanoTime() + val dataFlowFacade = languageVersion.languageVersionHandler.dataFlowFacade + dataFlowFacade.start(rootNode) + val end = System.nanoTime() + Benchmarker.mark(Benchmark.DFA, end - start, 0) } private fun usesTypeResolution(languageVersion: LanguageVersion, rootNode: Node, ruleSets: RuleSets) { diff --git a/idea-plugin/p3c-common/src/main/resources/icons/alibaba.png b/idea-plugin/p3c-common/src/main/resources/icons/alibaba.png index 546845c..947038f 100644 Binary files a/idea-plugin/p3c-common/src/main/resources/icons/alibaba.png and b/idea-plugin/p3c-common/src/main/resources/icons/alibaba.png differ