Hide IOException deprecation warning
已回答
Hello,
I catch a lot of IOExceptions from third-party code and cannot really do anything about it.
Is it possible to disable/hide a deprecation warning for the IOException? (without disabling the inspection whatsoever)
Thanks, Jacek
请先登录再写评论。
Could you please clarify the problem? IOException is not deprecated: https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html.
What exactly do you see in IntelliJ IDEA that tells you it's deprecated? A screenshot would probably help. Thank you.
Yeah I see it's not. This is weird.
Below are screenshots. Here it's some drawing code, but it is irrevelant.
After hitting alt enter
which takes me to inspection settings. Also, suppressing this inspection works.
Using Idea Community.
IntelliJ IDEA 2017.2.3
Build #IC-172.3968.16, built on August 22, 2017
JRE: 1.8.0_152-release-915-b11 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.10.0-32-generic
Please see https://stackoverflow.com/a/44569788/104891 for the solution.
Thanks. It worked.