blob: 2ca8083ceb36111915c98e1796f0aaf92b405a06 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
object Test {
def main(args: Array[String]): Unit = {
import java.lang.annotation.Retention;
val c = classOf[Retention]
val r: Retention = c.getAnnotation(c).asInstanceOf[Retention];
System.out.println(r.value)
}
}
|