Allopen, Noarg: Support transitive meta-annotations
This commit is contained in:
committed by
Yan Zhulanow
parent
82dbba838a
commit
f8edf51c1b
@@ -3,11 +3,20 @@ annotation class AllOpen
|
||||
@AllOpen
|
||||
annotation class MyComponent
|
||||
|
||||
@MyComponent // Double-transitive annotations is not supported
|
||||
@MyComponent // Double-transitive annotations is supported
|
||||
annotation class OtherComponent
|
||||
|
||||
@OtherComponent
|
||||
annotation class AnotherComponent
|
||||
|
||||
@java.lang.annotation.Documented
|
||||
annotation class Documented
|
||||
|
||||
class TestWithoutAnnotations_ShouldBeFinal
|
||||
|
||||
@Documented
|
||||
class ClassWithDocumented
|
||||
|
||||
@AllOpen
|
||||
class TestAllOpen_ShouldBeOpen
|
||||
|
||||
@@ -15,7 +24,10 @@ class TestAllOpen_ShouldBeOpen
|
||||
class TestMyComponent_ShouldBeOpen
|
||||
|
||||
@OtherComponent
|
||||
class TestOtherComponent_ShouldBeFinal
|
||||
class TestOtherComponent_ShouldBeOpen
|
||||
|
||||
@AnotherComponent
|
||||
class TestAnotherComponent_ShouldBeOpen
|
||||
|
||||
@MyComponent
|
||||
abstract class MyComponentBase
|
||||
|
||||
Reference in New Issue
Block a user