дзеркало
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-16 02:10:48 +02:00
18 рядки
205 B
Java
18 рядки
205 B
Java
|
import java.lang.annotation.*;
|
||
|
|
||
|
aspect X {
|
||
|
declare warning: @Anno *: "Nothing should be annotated Anno!";
|
||
|
}
|
||
|
|
||
|
@Anno
|
||
|
class C {
|
||
|
|
||
|
}
|
||
|
|
||
|
class D {
|
||
|
|
||
|
}
|
||
|
|
||
|
@Retention(RetentionPolicy.RUNTIME)
|
||
|
@interface Anno {}
|