RFR: 8298318: (fs) APIs for handling filename extensions [v8]
Anthony Vanelverdinghe
duke at openjdk.org
Sat Mar 16 22:23:40 UTC 2024
On Sat, 16 Mar 2024 11:23:50 GMT, ExE Boss <duke at openjdk.org> wrote:
> I think those should be the other way around, e.g.:
Not in the case I'm talking about. In that case, "if there's no debate possible, we return the file extension. Otherwise, we return the empty string", all I'm saying is that I believe it should be: "if there's no debate possible, we return `Optional.of(the file extension)`. Otherwise, we return `Optional.empty()`". So for `"text"` there's no debate possible and you get `Optional.of("")`. For `"text."` there is debate possible and you get `Optional.empty()`.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16226#issuecomment-2001964749
More information about the nio-dev
mailing list