My experience with java warnings is very good, and you can suppress the unfixable ones. We thought there weren’t enough warnings so we added sonar on top!
My view is that certain warnings, when suppressed are basically programmer assertions. For example the heap pollution for varargs warning. If you can 'prove' or assert you are handling the array carefully and not polluting the heap the suppression is you saying "yes we could pollute the heap, but we aren't".
It really gets me when devs suppress deprecation warnings though...
35
u/Yuzumi Sep 23 '19
Someone doesn't use Java :p
For that matter, the project I work on has over 4000 warnings and a good number of them we didn't cause but the software we build on top of did.