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...
186
u/[deleted] Sep 23 '19
Warnings are, generally speaking, as important as errors. They are errors waiting to happen.