Remove obsolete @OptIn(ExperimentalStdlibApi::class) annotations
They were added when `buildList`, `buildMap` and `buildSet` were experimental. ^KT-62510
This commit is contained in:
committed by
Space Team
parent
376d27dc6a
commit
f11cb277cd
-1
@@ -20,7 +20,6 @@ import org.jetbrains.org.objectweb.asm.tree.MethodNode
|
||||
private val BOXING_CLASS_INTERNAL_NAME =
|
||||
StandardNames.COROUTINES_JVM_INTERNAL_PACKAGE_FQ_NAME.child(Name.identifier("Boxing")).topLevelClassInternalName()
|
||||
|
||||
@OptIn(ExperimentalStdlibApi::class)
|
||||
object ChangeBoxingMethodTransformer : MethodTransformer() {
|
||||
private val wrapperToInternalBoxing: Map<String, String>
|
||||
|
||||
|
||||
-1
@@ -1154,7 +1154,6 @@ object LightTreePositioningStrategies {
|
||||
}
|
||||
}
|
||||
|
||||
@OptIn(ExperimentalStdlibApi::class)
|
||||
val COMMAS: LightTreePositioningStrategy = object : LightTreePositioningStrategy() {
|
||||
override fun mark(
|
||||
node: LighterASTNode,
|
||||
|
||||
-1
@@ -1015,7 +1015,6 @@ object PositioningStrategies {
|
||||
}
|
||||
}
|
||||
|
||||
@OptIn(ExperimentalStdlibApi::class)
|
||||
val COMMAS: PositioningStrategy<PsiElement> = object : PositioningStrategy<PsiElement>() {
|
||||
override fun mark(element: PsiElement): List<TextRange> {
|
||||
return buildList {
|
||||
|
||||
@@ -227,7 +227,6 @@ internal abstract class WhenOnClassExhaustivenessChecker : WhenExhaustivenessChe
|
||||
}
|
||||
|
||||
private object WhenOnEnumExhaustivenessChecker : WhenOnClassExhaustivenessChecker() {
|
||||
@OptIn(ExperimentalStdlibApi::class)
|
||||
override fun getMissingCases(
|
||||
expression: KtWhenExpression,
|
||||
context: BindingContext,
|
||||
@@ -248,7 +247,6 @@ private object WhenOnEnumExhaustivenessChecker : WhenOnClassExhaustivenessChecke
|
||||
}
|
||||
|
||||
internal object WhenOnSealedExhaustivenessChecker : WhenOnClassExhaustivenessChecker() {
|
||||
@OptIn(ExperimentalStdlibApi::class)
|
||||
override fun getMissingCases(
|
||||
expression: KtWhenExpression,
|
||||
context: BindingContext,
|
||||
|
||||
-1
@@ -455,7 +455,6 @@ class ResolvedAtomCompleter(
|
||||
)
|
||||
}
|
||||
|
||||
@OptIn(ExperimentalStdlibApi::class)
|
||||
private fun KotlinType.replaceFunctionTypeArgumentsByDescriptor(descriptor: CallableDescriptor) =
|
||||
when (descriptor) {
|
||||
is CallableMemberDescriptor -> {
|
||||
|
||||
-1
@@ -466,7 +466,6 @@ class MemoizedMultiFieldValueClassReplacements(
|
||||
}
|
||||
}
|
||||
|
||||
@OptIn(ExperimentalStdlibApi::class)
|
||||
private fun verifyStructureCompatibility(
|
||||
targetStructure: List<RemappedParameter>,
|
||||
sourceStructure: List<RemappedParameter>
|
||||
|
||||
@@ -43,7 +43,6 @@ import org.jetbrains.kotlin.resolve.calls.util.isSingleUnderscore
|
||||
import org.jetbrains.kotlin.utils.addIfNotNull
|
||||
|
||||
internal class ScriptGenerator(declarationGenerator: DeclarationGenerator) : DeclarationGeneratorExtension(declarationGenerator) {
|
||||
@OptIn(ExperimentalStdlibApi::class)
|
||||
fun generateScriptDeclaration(ktScript: KtScript): IrDeclaration? {
|
||||
val descriptor = getOrFail(BindingContext.DECLARATION_TO_DESCRIPTOR, ktScript) as ScriptDescriptor
|
||||
|
||||
|
||||
-1
@@ -160,7 +160,6 @@ class BinaryJavaAnnotation private constructor(
|
||||
return annotationVisitor
|
||||
}
|
||||
|
||||
@OptIn(ExperimentalStdlibApi::class)
|
||||
private fun translatePath(path: TypePath) = buildList {
|
||||
for (i in 0 until path.length) {
|
||||
when (val step = path.getStep(i)) {
|
||||
|
||||
@@ -12,7 +12,6 @@ data class Jsr305Settings(
|
||||
val migrationLevel: ReportLevel? = null,
|
||||
val userDefinedLevelForSpecificAnnotation: Map<FqName, ReportLevel> = emptyMap()
|
||||
) {
|
||||
@OptIn(ExperimentalStdlibApi::class)
|
||||
val description by lazy {
|
||||
buildList {
|
||||
add(globalLevel.description)
|
||||
|
||||
@@ -52,7 +52,6 @@ object Visibilities {
|
||||
}
|
||||
}
|
||||
|
||||
@OptIn(ExperimentalStdlibApi::class)
|
||||
private val ORDERED_VISIBILITIES: Map<Visibility, Int> = buildMap {
|
||||
put(PrivateToThis, 0)
|
||||
put(Private, 0)
|
||||
|
||||
Reference in New Issue
Block a user