Fixing java 7 warnings.