On Wed, 15 Oct 2025 13:41:58 GMT, Eirik Bjørsnøs <[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. Ah that explains why I did not see your comment... ------------- PR Comment: https://git.openjdk.org/jdk/pull/27693#issuecomment-3406664178
