Fixing an issue under Eclipse Luna's Java 8 compiler.

Thanks @joukestoel for reporting.