ljacqu/wordeval

Technical: Type of Optional.empty() cannot be inferred

Closed this issue · 1 comments

In ExportParams, it appears that mvn verify doesn't allow the use of Optional.empty() in a varargs list of a certain Optional type. Currently this is handled with two helper functions "casting" Optional.empty() to Optional or similar, but is this really necessary?

Oddly enough this doesn't happen anymore. Otherwise Optional.empty() can be replaced to Optional.<Double>empty() and friends