Fixed Java 8 syntax for retrocompatibility reasons