Eclipse的警告可以忽略吗?如果忽略会对最终的程序产生什么影响?
PHPz
PHPz 2017-04-24 09:13:10
0
2
907

Eclipse的警告可以忽略吗?如果忽略会对最终的程序产生什么影响?

PHPz
PHPz

学习是最好的投资!

reply all(2)
伊谢尔伦
@SuppressWarnings

This can solve the warning problem, but sometimes because some business codes must be so long, there is nothing you can do if there are warnings. But in most cases, the code is not standardized, and you should check your code carefully (including but not limited to code duplication, variables or methods not being used, poor code writing...)

In addition, you can also make your own set of code verification rules, which can be customized.

To give an example:
This code has a yellow warning. It is obviously the right way to write it, but it is actually inelegant and wasteful code.

After discovering the warning modification:

小葫芦

Warning Generally, I encountered some generics that you didn’t add, and your imported packages were not used, types were not checked, etc. In fact, if you don’t consider performance, program safety and robustness, you can ignore it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template