Fixed compilation error on Java 8.