From 98952f76ed5fb2feebfb91f0f6e1f4b8b64a02ce Mon Sep 17 00:00:00 2001 From: Filipp Zhinkin Date: Tue, 23 Apr 2024 11:00:25 +0200 Subject: [PATCH] Workaround for KT-66317 --- bytestring/jvm/src/-PlatformJvm.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 bytestring/jvm/src/-PlatformJvm.kt diff --git a/bytestring/jvm/src/-PlatformJvm.kt b/bytestring/jvm/src/-PlatformJvm.kt new file mode 100644 index 000000000..d419802d0 --- /dev/null +++ b/bytestring/jvm/src/-PlatformJvm.kt @@ -0,0 +1,12 @@ +/* + * Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file. + */ + +package kotlinx.io.bytestring + +// Incremental compilation doesn't work smoothly with OptionalExpectation (see KT-66317), +// so we have to explicitly actualize the annotation. +@Target(AnnotationTarget.FIELD) +internal actual annotation class BenignDataRace actual constructor() +