On Wed, 15 Oct 2025 13:34:07 GMT, Lance Andersen <[email protected]> wrote:

> Pattern::matches invokes Pattern::compile and String::matches invokes 
> Pattern::matches so did not see the benefit when we added the methods 
> originally in JDK 9

Yeah, it just seemed `String:matches` would be less verbose. I then noticed 
Roger raising related suggestions about precomplication, which is why I removed 
my comment from the PR since it seemed no longer relevant.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/27693#issuecomment-3406512899

Reply via email to