Compiles with Java 1.6
Merge pull request #2 from raducoravu/patch-2

Make it compile with Java 1.6