Kapt: load all annotations, even if annotation processors does not require it explicitly. Some annotation processors may want to process some more annotations (see DbFlow, Database annotation).
Blacklist some common-used Java and Kotlin annotations instead (like Deprecated, Nullable or Metadata). (cherry picked from commit 6856a7c)
This commit is contained in:
committed by
Yan Zhulanow
parent
975364b2ed
commit
c6c1673902
@@ -1,4 +1,6 @@
|
||||
@Deprecated("")
|
||||
annotation class Anno
|
||||
|
||||
@Anno
|
||||
class MyClass {
|
||||
var myProperty: String = "A"
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package test
|
||||
|
||||
@Deprecated("")
|
||||
annotation class Anno
|
||||
|
||||
@Anno
|
||||
class MyClass
|
||||
|
||||
interface MyInterface
|
||||
@@ -1,3 +1,6 @@
|
||||
annotation class Anno
|
||||
|
||||
@Anno
|
||||
@Deprecated("")
|
||||
class Depr
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
annotation class Anno
|
||||
|
||||
@Anno
|
||||
class A {
|
||||
interface AA {
|
||||
fun onClick(o: Any)
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
@Deprecated("")
|
||||
annotation class Anno
|
||||
|
||||
@Anno
|
||||
open class Parent {
|
||||
open fun a() {}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
@Deprecated("")
|
||||
annotation class Anno
|
||||
|
||||
@Anno
|
||||
interface Intf {
|
||||
fun a()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user