Drop previously deprecated API
- common and JS org.junit.Test from kotlin.test - kotlin.Synchronized/Volatile from K/JS - JS 'native' annotation
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2018 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/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.junit
|
||||
|
||||
/** @suppress */
|
||||
@Suppress("NO_ACTUAL_FOR_EXPECT")
|
||||
@Deprecated(
|
||||
"Use 'Test' from kotlin.test package",
|
||||
replaceWith = ReplaceWith("kotlin.test.Test", "kotlin.test.Test"),
|
||||
level = DeprecationLevel.ERROR
|
||||
)
|
||||
expect annotation class Test()
|
||||
@@ -1,13 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2018 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/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.junit
|
||||
|
||||
@Deprecated(
|
||||
"Use 'Test' from kotlin.test package",
|
||||
replaceWith = ReplaceWith("kotlin.test.Test", "kotlin.test.Test"),
|
||||
level = DeprecationLevel.ERROR
|
||||
)
|
||||
actual typealias Test = kotlin.test.Test
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2020 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/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@@ -7,10 +7,6 @@ package kotlin.js
|
||||
|
||||
import kotlin.annotation.AnnotationTarget.*
|
||||
|
||||
@Target(CLASS, FUNCTION, PROPERTY, CONSTRUCTOR, VALUE_PARAMETER, PROPERTY_GETTER, PROPERTY_SETTER)
|
||||
@Deprecated("Use `external` modifier instead", level = DeprecationLevel.ERROR)
|
||||
public annotation class native(public val name: String = "")
|
||||
|
||||
@Target(FUNCTION)
|
||||
@Deprecated("Use inline extension function with body using dynamic")
|
||||
public annotation class nativeGetter
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2020 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/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@@ -8,12 +8,6 @@ package kotlin
|
||||
import kotlin.contracts.*
|
||||
|
||||
|
||||
@Deprecated("Do not use Synchronized annotation in pure Kotlin/JS code", level = DeprecationLevel.ERROR)
|
||||
public typealias Synchronized = kotlin.jvm.Synchronized
|
||||
|
||||
@Deprecated("Do not use Volatile annotation in pure Kotlin/JS code", level = DeprecationLevel.ERROR)
|
||||
public typealias Volatile = kotlin.jvm.Volatile
|
||||
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun <R> synchronized(lock: Any, block: () -> R): R {
|
||||
contract {
|
||||
|
||||
Reference in New Issue
Block a user