From a7c3113b2249a0fa1631dbc0e4bb85d75a12b25a Mon Sep 17 00:00:00 2001 From: 2017398956 <2017398956@qq.com> Date: Thu, 11 Aug 2022 18:41:02 +0800 Subject: Fixed Java file extension spelling error and add a test (#2604) Co-authored-by: nfl --- .../src/main/kotlin/org/jetbrains/dokka/analysis/AnalysisEnvironment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kotlin-analysis/src') diff --git a/kotlin-analysis/src/main/kotlin/org/jetbrains/dokka/analysis/AnalysisEnvironment.kt b/kotlin-analysis/src/main/kotlin/org/jetbrains/dokka/analysis/AnalysisEnvironment.kt index 9efa66fb..37381b0f 100644 --- a/kotlin-analysis/src/main/kotlin/org/jetbrains/dokka/analysis/AnalysisEnvironment.kt +++ b/kotlin-analysis/src/main/kotlin/org/jetbrains/dokka/analysis/AnalysisEnvironment.kt @@ -571,7 +571,7 @@ class AnalysisEnvironment(val messageCollector: MessageCollector, val analysisPl fun addSources(sourceDirectories: Iterable) { sourceDirectories.forEach { directory -> configuration.addKotlinSourceRoot(directory.path) - if (directory.isDirectory || directory.extension == ".java") { + if (directory.isDirectory || directory.extension == "java") { configuration.addJavaSourceRoot(directory) } } -- cgit