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
gildor
06/02/2021, 9:34 AM
I usually add ignore comment
l
LastExceed
06/02/2021, 9:34 AM
wdym ?
g
gildor
06/02/2021, 9:35 AM
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
LastExceed
06/02/2021, 9:36 AM
oh thats cool. is this intellij specific or part of the compiler ?
c
christophsturm
06/02/2021, 10:43 AM
the best way to get rid of an unused symbol warning is to write a unit test
👍 1
n
Nikky
06/02/2021, 10:50 AM
unit tests are not in the same module though.. so this does not always remove the compiler warnings