Make annotation collector tests more thorough
This commit is contained in:
+7
-2
@@ -1,3 +1,8 @@
|
||||
a java.lang.Deprecated 0
|
||||
a java.lang.annotation.Retention 0
|
||||
p org.test 0
|
||||
m 0 0/SomeClass$annotatedFunction$1 invoke
|
||||
c 0 0/Ann
|
||||
a org.test.Ann 1
|
||||
m 1 0/Parent overridenWithoutAnnotation
|
||||
m 1 0/Parent notOverriden
|
||||
m 1 0/Child overridenWithAnnotation
|
||||
m 1 0/Child childMethod
|
||||
|
||||
+17
-5
@@ -1,13 +1,25 @@
|
||||
package org.test
|
||||
|
||||
public class SomeClass {
|
||||
annotation class Ann
|
||||
|
||||
public fun annotatedFunction() {
|
||||
open class Parent {
|
||||
@Ann
|
||||
open fun overridenWithoutAnnotation() {}
|
||||
|
||||
@java.lang.Deprecated fun localFunction() {
|
||||
open fun overridenWithAnnotation() {}
|
||||
|
||||
}
|
||||
@Ann
|
||||
fun notOverriden() {}
|
||||
|
||||
}
|
||||
open fun notAnnotated() {}
|
||||
}
|
||||
|
||||
class Child : Parent() {
|
||||
override fun overridenWithoutAnnotation() {}
|
||||
|
||||
@Ann
|
||||
override fun overridenWithAnnotation() {}
|
||||
|
||||
@Ann
|
||||
fun childMethod() {}
|
||||
}
|
||||
Reference in New Issue
Block a user