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)