how do i get rid of "unused symbol" warnings when ...
# announcements
l
how do i get rid of "unused symbol" warnings when developing an api wrapper library? do i just turn off the inspection for the project ?
g
I usually add ignore comment
l
wdym ?
g
If you open file, press alt+enter on warning it will suggest you to suppress it, if you do it will add a special comment which used by Idea to ignore warning
l
oh thats cool. is this intellij specific or part of the compiler ?
c
the best way to get rid of an unused symbol warning is to write a unit test
👍 1
n
unit tests are not in the same module though.. so this does not always remove the compiler warnings