From 41c5568b7485485563ca6fea941b07ad4714788f Mon Sep 17 00:00:00 2001 From: Alexey Tsvetkov Date: Fri, 13 Jan 2017 09:45:17 +0300 Subject: [PATCH] Minor: add comment --- .../jetbrains/kotlin/daemon/common/CompilationOptions.kt | 6 ++++++ .../kotlin/daemon/common/CompilerServicesFacadeBase.kt | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/compiler/daemon/daemon-common/src/org/jetbrains/kotlin/daemon/common/CompilationOptions.kt b/compiler/daemon/daemon-common/src/org/jetbrains/kotlin/daemon/common/CompilationOptions.kt index 994a0f662e8..3ebd25bc0b5 100644 --- a/compiler/daemon/daemon-common/src/org/jetbrains/kotlin/daemon/common/CompilationOptions.kt +++ b/compiler/daemon/daemon-common/src/org/jetbrains/kotlin/daemon/common/CompilationOptions.kt @@ -22,8 +22,11 @@ import java.io.Serializable open class CompilationOptions( val compilerMode: CompilerMode, val targetPlatform: CompileService.TargetPlatform, + /** @See [ReportCategory] */ val reportCategories: Array, + /** @See [ReportSeverity] */ val reportSeverity: Int, + /** @See [CompilationResultCategory]] */ val requestedCompilationResults: Array ) : Serializable { companion object { @@ -40,8 +43,11 @@ class IncrementalCompilationOptions( val customCacheVersion: Int, compilerMode: CompilerMode, targetPlatform: CompileService.TargetPlatform, + /** @See [ReportCategory] */ reportCategories: Array, + /** @See [ReportSeverity] */ reportSeverity: Int, + /** @See [CompilationResultCategory]] */ requestedCompilationResults: Array ) : CompilationOptions(compilerMode, targetPlatform, reportCategories, reportSeverity, requestedCompilationResults) { companion object { diff --git a/compiler/daemon/daemon-common/src/org/jetbrains/kotlin/daemon/common/CompilerServicesFacadeBase.kt b/compiler/daemon/daemon-common/src/org/jetbrains/kotlin/daemon/common/CompilerServicesFacadeBase.kt index 4d35ded7b1d..700fbc9ead1 100644 --- a/compiler/daemon/daemon-common/src/org/jetbrains/kotlin/daemon/common/CompilerServicesFacadeBase.kt +++ b/compiler/daemon/daemon-common/src/org/jetbrains/kotlin/daemon/common/CompilerServicesFacadeBase.kt @@ -40,7 +40,6 @@ enum class ReportCategory(val code: Int) { companion object { fun fromCode(code: Int): ReportCategory? = ReportCategory.values().firstOrNull { it.code == code } - } }