Fix java 6 regression introduced by 0fcb80561cd9a5b3e7032224a1efd8749ee21b0d
Merge pull request #40 from cykl/fix_java6

Fix java 6 regression introduced by 0fcb80561cd9a5b3e7032224a1efd8749ee21b0d