Java – IntelliJ: search for checked exceptions, declare them in the method signature, but never throw them into the body

I have a fairly simple IntelliJ / tools question here:

Thank you in advance

Solution

Open the settings and select editor - aspects Find the Java - declare redundancy - redundant throws clause and check it

Then run code analysis, although analysis - checks the code on the top menu

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>