RFR: 8298318: (fs) APIs for handling filename extensions [v8]
ExE Boss
duke at openjdk.org
Sat Mar 16 22:23:33 UTC 2024
On Fri, 15 Mar 2024 18:10:52 GMT, Anthony Vanelverdinghe <duke at openjdk.org> wrote:
> If so, I believe the return type ought to be `Optional<String>`. That way `text` could return `Optional.of("")` whereas `text.` would return `Optional.empty()`.
I think those should be the other way around, e.g.:
- `"text"` → `Optional.empty()`
- `"text."` → `Optional.of("")`
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16226#issuecomment-2001955281
More information about the nio-dev
mailing list