Mapping of JavaDoc deprecated to Kotlin Deprecated + a pair of tests

This commit is contained in:
Mikhail Glukhikh
2015-08-04 14:39:53 +03:00
parent 7d02b45558
commit 45cc3c025f
17 changed files with 118 additions and 8 deletions
@@ -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> {
@@ -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
}
@@ -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