package br.com.waslleysouza.zz;
import java.lang.annotation.Annotation;
import java.lang.annotation.Annotation.*;
@Inheritable
class Base
{
}
public class InheritableTest extends Base{
public InheritableTest() {
super();
}
public static void main(String[] args)
{
System.out.println(InheritableTest.class.isAnnotationPresent(Inheritable.class));
}
}
import java.lang.annotation.Annotation;
import java.lang.annotation.Annotation.*;
@Inheritable
class Base
{
}
public class InheritableTest extends Base{
public InheritableTest() {
super();
}
public static void main(String[] args)
{
System.out.println(InheritableTest.class.isAnnotationPresent(Inheritable.class));
}
}
1834

被折叠的 条评论
为什么被折叠?



