File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
plugin/main/src/kotlinx/benchmark/gradle Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,9 @@ class SuiteSourceGenerator(
8383
8484 val mainBenchmarkPackage = " kotlinx.benchmark.generated"
8585
86- val suppressUnusedParameter = AnnotationSpec .builder(Suppress ::class ).addMember(" \" UNUSED_PARAMETER\" " ).build()
86+ val suppressWarnings = AnnotationSpec .builder(Suppress ::class ).addMember(
87+ " \" UNUSED_PARAMETER\" , \" REDUNDANT_CALL_OF_CONVERSION_METHOD\" "
88+ ).build()
8789 val optInRuntimeInternalApi = AnnotationSpec .builder(ClassName (" kotlin" , " OptIn" )).addMember(
8890 " kotlinx.benchmark.internal.KotlinxBenchmarkRuntimeInternalApi::class"
8991 ).build()
@@ -193,7 +195,7 @@ class SuiteSourceGenerator(
193195
194196 val file = FileSpec .builder(benchmarkPackageName, benchmarkName).apply {
195197 declareObject(benchmarkClass) {
196- addAnnotation(suppressUnusedParameter )
198+ addAnnotation(suppressWarnings )
197199 addAnnotation(optInRuntimeInternalApi)
198200
199201 function(setupFunctionName) {
You can’t perform that action at this time.
0 commit comments