Would you ever dare to enable all compiler warnings? Most people don’t, and some people are afraid to, because of what they might find out about their code. The Java compiler is the first line of defense against bugs. Enabling warnings makes it possible for the compiler to tell you more about your code.
Fixing warnings will improve your code base, because the warnings will point out bugs, questionable constructs, and use of obsolescent and deprecated interfaces.? This session’s speakers cite examples from their experiences in cleaning up warnings in the JDK, with the participation of the OpenJDK community. Don’t be afraid to enable compiler warnings!