Viewing sample resized to 66% of original (view original) Loading...
Title

Dare to Compile Your Code with -Xlint:all -Werror

Description

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!

Copyright © 2013 Oracle and/or its affiliates. Oracle® is a registered trademark of Oracle and/or its affiliates. All rights reserved. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the "Materials"). The Materials are provided "as is" without any warranty of any kind, either express or implied, including without limitation warranties of merchantability, fitness for a particular purpose, and non-infringement.

Blacklisted
  • Comments
  • There are no comments.