Can we deprecate Path.endsWith(String)?

Brian Burkhalter brian.burkhalter at oracle.com
Wed Jan 7 21:44:51 UTC 2026


In the list below I omitted adding Path.{ends,starts}WithString(String) which is different from item 3 in the list.

Brian

On Jan 7, 2026, at 12:34 PM, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:

Among doubtlessly many others, one alternative is

1. Leave Path.{ends,starts}With(Path) unchanged
2. Deprecate Path.{ends,starts}With(String)
3. Add Path.pathString{ends,starts}With(String)

where "pathstring" in effect implies the value of Path.toString().

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/nio-dev/attachments/20260107/fe56046f/attachment.htm>


More information about the nio-dev mailing list