How to deal with warnings in a legacy project
I work on a C++ project that generates bajillions of warnings. Most of the warnings appeared after the code was written:
Handling compiler bugs in Continuous Integration
I believe that warnings should be treated as errors. If you start ignoring warnings you’ll start missing “important” warnings among the “unimportant” ones. So my Continuous Integration system fails a build if there are warnings.
Why am I getting field visibility warnings in Sonar?
Some static analysis tools flag non-private fields with
Why am I getting field visibility warnings in Sonar?
Some static analysis tools flag non-private fields with
Why am I getting field visibility warnings in Sonar?
Some static analysis tools flag non-private fields with
Is it a good practice to use suppress warnings in your code?
I use @SuppressWarnings("unchecked")
and @SuppressWarnings("null")
mostly above methods to let the code compile without any warnings but I have my doubts. Found this Stackoverflow question. Jon Skeet wrote an answer to it which I find intriguing.