Fixed the JDK 7 and 8 of lamba syntax problem