Fixed a java7 dependency that can be easily avoided