Skip to content

Commit

Permalink
move Suppress to the actual place where it is used
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeniy Moiseenko <[email protected]>
  • Loading branch information
eupp committed Dec 7, 2024
1 parent 3d1fd15 commit 47ce79b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.*
Expand Down Expand Up @@ -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)"
Expand Down

0 comments on commit 47ce79b

Please sign in to comment.