Minor: add comment

This commit is contained in:
Alexey Tsvetkov
2017-01-13 09:45:17 +03:00
parent 7a29c00ec3
commit 41c5568b74
2 changed files with 6 additions and 1 deletions
@@ -22,8 +22,11 @@ import java.io.Serializable
open class CompilationOptions(
val compilerMode: CompilerMode,
val targetPlatform: CompileService.TargetPlatform,
/** @See [ReportCategory] */
val reportCategories: Array<Int>,
/** @See [ReportSeverity] */
val reportSeverity: Int,
/** @See [CompilationResultCategory]] */
val requestedCompilationResults: Array<Int>
) : Serializable {
companion object {
@@ -40,8 +43,11 @@ class IncrementalCompilationOptions(
val customCacheVersion: Int,
compilerMode: CompilerMode,
targetPlatform: CompileService.TargetPlatform,
/** @See [ReportCategory] */
reportCategories: Array<Int>,
/** @See [ReportSeverity] */
reportSeverity: Int,
/** @See [CompilationResultCategory]] */
requestedCompilationResults: Array<Int>
) : CompilationOptions(compilerMode, targetPlatform, reportCategories, reportSeverity, requestedCompilationResults) {
companion object {
@@ -40,7 +40,6 @@ enum class ReportCategory(val code: Int) {
companion object {
fun fromCode(code: Int): ReportCategory? =
ReportCategory.values().firstOrNull { it.code == code }
}
}