Mapping of JavaDoc deprecated to Kotlin Deprecated + a pair of tests
This commit is contained in:
+2
@@ -26,6 +26,8 @@ public interface ReflectJavaAnnotationOwner : JavaAnnotationOwner {
|
||||
override fun getAnnotations() = getAnnotations(element.getDeclaredAnnotations())
|
||||
|
||||
override fun findAnnotation(fqName: FqName) = findAnnotation(element.getDeclaredAnnotations(), fqName)
|
||||
|
||||
override fun isDeprecatedInJavaDoc() = false
|
||||
}
|
||||
|
||||
fun getAnnotations(annotations: Array<Annotation>): List<ReflectJavaAnnotation> {
|
||||
|
||||
+2
@@ -54,4 +54,6 @@ public class ReflectJavaClassifierType(public override val type: Type) : Reflect
|
||||
override fun findAnnotation(fqName: FqName): JavaAnnotation? {
|
||||
return null // TODO
|
||||
}
|
||||
|
||||
override fun isDeprecatedInJavaDoc() = false
|
||||
}
|
||||
|
||||
+2
@@ -28,6 +28,8 @@ public class ReflectJavaValueParameter(
|
||||
|
||||
override fun findAnnotation(fqName: FqName) = findAnnotation(annotations, fqName)
|
||||
|
||||
override fun isDeprecatedInJavaDoc() = false
|
||||
|
||||
override fun getName() = null // TODO: use ParameterNames on JDK 8
|
||||
override fun getType() = returnType
|
||||
override fun isVararg() = isVararg
|
||||
|
||||
Reference in New Issue
Block a user