Ensure that the library remains compliant with Java 6

java source level reverted at commit 811590d8, however code still contains a java 8 reference (removed and added animal sniffer to ensure java level compliancy)

This possibly duplicates #11 to some extent