Corrected a java 7 compatibility issue