diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-03-11 20:36:11 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-03-11 20:36:11 +0100 |
commit | d42aece34e81119aae546d4b78fa0ebdb683421d (patch) | |
tree | 22d6a43fdecb9770b5b81ba2194a60750abe8127 | |
parent | 287538059c0f67e23c2c09f3001790ab20365fc0 (diff) | |
download | dokka-d42aece34e81119aae546d4b78fa0ebdb683421d.tar.gz dokka-d42aece34e81119aae546d4b78fa0ebdb683421d.tar.bz2 dokka-d42aece34e81119aae546d4b78fa0ebdb683421d.zip |
fix warnings about initializers
-rw-r--r-- | src/Analysis/AnalysisEnvironment.kt | 2 | ||||
-rw-r--r-- | test/src/markdown/MarkdownTestRunner.kt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Analysis/AnalysisEnvironment.kt b/src/Analysis/AnalysisEnvironment.kt index 279489e7..1813a4b0 100644 --- a/src/Analysis/AnalysisEnvironment.kt +++ b/src/Analysis/AnalysisEnvironment.kt @@ -24,7 +24,7 @@ import org.jetbrains.kotlin.resolve.lazy.ResolveSession public class AnalysisEnvironment(val messageCollector: MessageCollector, body: AnalysisEnvironment.() -> Unit = {}) : Disposable { val configuration = CompilerConfiguration(); - { + init { configuration.put(CLIConfigurationKeys.MESSAGE_COLLECTOR_KEY, messageCollector) body() } diff --git a/test/src/markdown/MarkdownTestRunner.kt b/test/src/markdown/MarkdownTestRunner.kt index 7dc2e82e..99c3732e 100644 --- a/test/src/markdown/MarkdownTestRunner.kt +++ b/test/src/markdown/MarkdownTestRunner.kt @@ -76,7 +76,7 @@ public open class MarkdownTestSection(val spec: MarkdownSpecification, val title } public class MarkdownTestRunner(specificationClass: Class<MarkdownSpecification>) : MarkdownTestSection(specificationClass.newInstance(), "Tests") { - { + init { val lines = File(spec.path).readLines() createSections(this, lines, 1) } |