Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
骏烈 committed Dec 27, 2017
1 parent 16d65a9 commit 57888c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Binary file modified idea-plugin/p3c-common/src/main/resources/icons/alibaba.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 57888c9

Please sign in to comment.