Is there a way to suppress "unused" warnings for a...
# announcements
a
Is there a way to suppress "unused" warnings for all the public functions/classes in Intellij? (Java seems to have option but Kotlin doesn't)
🚫 1
Link to corresponding question in SO: https://stackoverflow.com/q/65084965/11377112
c
Hey! Have you tried these annotations? @SuppressWarnings("unused"), @SuppressWarnings({"UnusedDeclaration"}) or @SuppressWarnings({"UnusedParameters"})
a
@ChibuFirst Already said on SO:
I'm aware of 
@file:Supress("unused")
 but that seems to disable whole inspection in the file while I only want to disable it for the public classes and functions, and also for the whole project instead of single file.
And manually putting
@Supress
on each class/function is not that great...
🆗 1
a
Just use them in tests 😄
👀 1
n
^ not the answer you were looking for, but the answer you needed 😛
🙃 2
498 Views