Compile Your Java Code with -Xlint:all -Werror
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 …