diff options
author | 2017398956 <2017398956@qq.com> | 2022-08-11 18:41:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-11 12:41:02 +0200 |
commit | a7c3113b2249a0fa1631dbc0e4bb85d75a12b25a (patch) | |
tree | 4af69aaaee90fdb69cfc2c0e1a638169870e39a2 /kotlin-analysis/src/main/kotlin/org/jetbrains/dokka | |
parent | 732f8aac1eb6b2c137fdf81d9d670a30d0f8b9ea (diff) | |
download | dokka-a7c3113b2249a0fa1631dbc0e4bb85d75a12b25a.tar.gz dokka-a7c3113b2249a0fa1631dbc0e4bb85d75a12b25a.tar.bz2 dokka-a7c3113b2249a0fa1631dbc0e4bb85d75a12b25a.zip |
Fixed Java file extension spelling error and add a test (#2604)
Co-authored-by: nfl <fuli.niu@zealcomm.cn>
Diffstat (limited to 'kotlin-analysis/src/main/kotlin/org/jetbrains/dokka')
-rw-r--r-- | kotlin-analysis/src/main/kotlin/org/jetbrains/dokka/analysis/AnalysisEnvironment.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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<File>) { sourceDirectories.forEach { directory -> configuration.addKotlinSourceRoot(directory.path) - if (directory.isDirectory || directory.extension == ".java") { + if (directory.isDirectory || directory.extension == "java") { configuration.addJavaSourceRoot(directory) } } |