fix eclipse compilation errors

IntelliJ doesn't like this, says the signature of `apply` here is not the same as in the interface.