Relocate @JvmDefault to stdlib module
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||
* that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package kotlin.jvm
|
||||
|
||||
@Experimental(Experimental.Level.WARNING, [(Experimental.Impact.COMPILATION)])
|
||||
@Target(
|
||||
AnnotationTarget.CLASS,
|
||||
AnnotationTarget.CONSTRUCTOR,
|
||||
AnnotationTarget.FUNCTION,
|
||||
AnnotationTarget.PROPERTY
|
||||
)
|
||||
annotation class JvmDefaultFeature
|
||||
|
||||
@JvmDefaultFeature
|
||||
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY)
|
||||
annotation class JvmDefault
|
||||
@@ -134,4 +134,4 @@ public annotation class JvmSuppressWildcards(val suppress: Boolean = true)
|
||||
@Target(AnnotationTarget.TYPE)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@MustBeDocumented
|
||||
public annotation class JvmWildcard
|
||||
public annotation class JvmWildcard
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||
* that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
@file:JvmVersion
|
||||
|
||||
package kotlin.jvm
|
||||
|
||||
import kotlin.internal.RequireKotlin
|
||||
import kotlin.internal.RequireKotlinVersionKind
|
||||
|
||||
/**
|
||||
* Specifies that a JVM default method should be generated for non-abstract Kotlin interface member.
|
||||
* This annotation requires explicit compilation flag to be enabled: `-Xenable-jvm-default`.
|
||||
* Adding annotation is binary incompatible change.
|
||||
*/
|
||||
@SinceKotlin("1.2")
|
||||
@RequireKotlin("1.2.40", versionKind = RequireKotlinVersionKind.COMPILER_VERSION)
|
||||
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY)
|
||||
annotation class JvmDefault
|
||||
Reference in New Issue
Block a user