开发者

configure java compiler so that it gives an error on missing annotations

开发者 https://www.devze.com 2023-01-16 06:17 出处:网络
how can i configure the jav开发者_开发技巧ac compiler to give an error instead of a warning when an annotation like @Override is missing?

how can i configure the jav开发者_开发技巧ac compiler to give an error instead of a warning when an annotation like @Override is missing?

it should work on java 5.


You can use the -Werror option with JDK 6.


On the same topic :

  • Javac: Treat warnings as errors
0

精彩评论

暂无评论...
验证码 换一张
取 消