From 47ce79bb76f725124a2ef34f5cac0bd195d5a703 Mon Sep 17 00:00:00 2001 From: Evgeniy Moiseenko Date: Sat, 7 Dec 2024 01:28:23 +0100 Subject: [PATCH] move `Suppress` to the actual place where it is used Signed-off-by: Evgeniy Moiseenko --- .../kotlinx/lincheck_benchmark/AbstractLincheckBenchmark.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jvm/benchmark/org/jetbrains/kotlinx/lincheck_benchmark/AbstractLincheckBenchmark.kt b/src/jvm/benchmark/org/jetbrains/kotlinx/lincheck_benchmark/AbstractLincheckBenchmark.kt index 1aa07ac1e..cecc3085f 100644 --- a/src/jvm/benchmark/org/jetbrains/kotlinx/lincheck_benchmark/AbstractLincheckBenchmark.kt +++ b/src/jvm/benchmark/org/jetbrains/kotlinx/lincheck_benchmark/AbstractLincheckBenchmark.kt @@ -8,8 +8,6 @@ * with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER") - package org.jetbrains.kotlinx.lincheck_benchmark import org.jetbrains.kotlinx.lincheck.* @@ -44,7 +42,9 @@ abstract class AbstractLincheckBenchmark( ) val klass = this@AbstractLincheckBenchmark::class val checker = LinChecker(klass.java, this) - val failure = checker.checkImpl(customTracker = statisticsTracker) + val failure = + @Suppress("INVISIBLE_MEMBER") // `checkImpl` API is currently internal in the Lincheck module + checker.checkImpl(customTracker = statisticsTracker) if (failure == null) { assert(expectedFailures.isEmpty()) { "This test should fail, but no error has been occurred (see the logs for details)"