Corrected Java compatibility 1.8 -> 1.7