Open blinkfox opened 5 years ago
https://blinkfox.github.io/2018/11/14/hou-duan/java/java8-xin-te-xing-ji-shi-yong-er/
扩展注解的支持Java 8扩展了注解的上下文。现在几乎可以为任何东西添加注解:局部变量、泛型类、父类与接口的实现,就连方法的异常也能添加注解。下面演示几个例子: import java.lang.annotation.ElementType
博主的主题很棒,感谢~
大佬教教我为什么点击评论之后提交不上
https://blinkfox.github.io/2018/11/14/hou-duan/java/java8-xin-te-xing-ji-shi-yong-er/
扩展注解的支持Java 8扩展了注解的上下文。现在几乎可以为任何东西添加注解:局部变量、泛型类、父类与接口的实现,就连方法的异常也能添加注解。下面演示几个例子: import java.lang.annotation.ElementType