Fix warnings in compiler code and tests
This commit is contained in:
committed by
Alexander Udalov
parent
ebfbc2f601
commit
d9efc2d922
+8
-7
@@ -5,18 +5,17 @@
|
||||
|
||||
package org.jetbrains.kotlin.daemon.report.experimental
|
||||
|
||||
import kotlinx.coroutines.*
|
||||
import org.jetbrains.kotlin.cli.common.ExitCode
|
||||
import org.jetbrains.kotlin.daemon.common.*
|
||||
import org.jetbrains.kotlin.daemon.report.CompositeICReporter
|
||||
import kotlinx.coroutines.GlobalScope
|
||||
import kotlinx.coroutines.async
|
||||
import org.jetbrains.kotlin.build.report.ICReporterBase
|
||||
import org.jetbrains.kotlin.build.report.RemoteBuildReporter
|
||||
import org.jetbrains.kotlin.build.report.RemoteICReporter
|
||||
import org.jetbrains.kotlin.build.report.metrics.BuildMetricsReporter
|
||||
import org.jetbrains.kotlin.build.report.metrics.DoNothingBuildMetricsReporter
|
||||
import org.jetbrains.kotlin.build.report.metrics.RemoteBuildMetricsReporter
|
||||
import org.jetbrains.kotlin.daemon.report.BuildReportICReporter
|
||||
import org.jetbrains.kotlin.daemon.report.CompileIterationICReporter
|
||||
import org.jetbrains.kotlin.cli.common.ExitCode
|
||||
import org.jetbrains.kotlin.daemon.common.*
|
||||
import org.jetbrains.kotlin.daemon.report.CompositeICReporter
|
||||
import java.io.File
|
||||
|
||||
internal class DebugMessagesICReporterAsync(
|
||||
@@ -137,6 +136,8 @@ fun getICReporterAsync(
|
||||
CompilationResultCategory.VERBOSE_BUILD_REPORT_LINES -> {
|
||||
reporters.add(BuildReportICReporterAsync(compilationResults, root, isVerbose = true))
|
||||
}
|
||||
CompilationResultCategory.BUILD_METRICS -> {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -148,4 +149,4 @@ fun getICReporterAsync(
|
||||
object DoNothingRemoteBuildMetricsReporter : BuildMetricsReporter by DoNothingBuildMetricsReporter, RemoteBuildMetricsReporter {
|
||||
override fun flush() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,6 +52,8 @@ fun getBuildReporter(
|
||||
CompilationResultCategory.VERBOSE_BUILD_REPORT_LINES -> {
|
||||
reporters.add(BuildReportICReporter(compilationResults, root, isVerbose = true))
|
||||
}
|
||||
CompilationResultCategory.BUILD_METRICS -> {
|
||||
}
|
||||
}
|
||||
}
|
||||
val areBuildMetricsNeeded = CompilationResultCategory.BUILD_METRICS in requestedResults
|
||||
@@ -61,5 +63,3 @@ fun getBuildReporter(
|
||||
|
||||
return RemoteBuildReporter(CompositeICReporter(reporters), metricsReporter)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user