java-pitfalls
java-pitfalls copied to clipboard
A collection of Java code examples containing typical (sometimes subtle) programming errors
Java Pitfalls 
A collection of Java code examples containing typical (sometimes subtle) programming errors.

Instructions
- Each class in package
de.kimminich.pitfallsof foldersrccontains at least one programming error - For the best learning experience view the code directly on github.com or use a text editor as some IDEs (e.g. IntelliJ IDEA) will complain about some of the bugs out-of-the-box
- Only check a corresponding
Hintclass in foldersrc-hintsif you cannot find the bug(s) otherwise - If the test doesn't help (or there is none for that class) you might want to run FindBugs on that particular file
- A possible fix for each pitfall can be found in the corresponding
Fixedclasses in foldersrc-fixed
Enjoy!
Image: http://reusdesigns.deviantart.com/art/Pitfall-Atari-2600-1982-106033303