added java 8 compability
Merge pull request #1 from andlinger/master

added java 8 compability