Retention for 'kotlin.throws'

This commit is contained in:
Mikhail Glukhikh
2015-07-22 16:19:27 +03:00
parent bab01f3822
commit c3c02e49c9
+1 -4
View File
@@ -1,7 +1,5 @@
package kotlin package kotlin
import java.lang.annotation.Retention
import java.lang.annotation.RetentionPolicy
import kotlin.jvm.internal.unsafe.* import kotlin.jvm.internal.unsafe.*
import kotlin.jvm.internal.Intrinsic import kotlin.jvm.internal.Intrinsic
import kotlin.reflect.KClass import kotlin.reflect.KClass
@@ -24,8 +22,7 @@ import kotlin.reflect.KClass
* *
* @property exceptionClasses the list of checked exception classes that may be thrown by the function. * @property exceptionClasses the list of checked exception classes that may be thrown by the function.
*/ */
Retention(RetentionPolicy.SOURCE) public annotation(retention = AnnotationRetention.SOURCE) class throws(public vararg val exceptionClasses: KClass<out Throwable>)
public annotation class throws(public vararg val exceptionClasses: KClass<out Throwable>)
/** /**
* Returns the runtime Java class of this object. * Returns the runtime Java class of this object.