xxw1754352621 / java-dev

愿景:提升自我知识容量,扩展自我知识边界
Apache License 2.0
6 stars 2 forks source link

程序中使用断言测试assert #23

Closed xxw1754352621 closed 5 years ago

xxw1754352621 commented 5 years ago

编译器默认不适用assert检测(-da),所以要使用时要添加参数虚拟机启动参数-ea 所以,可以不删除断言的代码

参考: https://blog.csdn.net/chenchaofuck1/article/details/50817714

xxw1754352621 commented 5 years ago

assert关键字的使用