On Tue, 4 Nov 2025 10:05:42 GMT, Stefan Karlsson <[email protected]> wrote:
> > I didn't use "find", as all the existing methods in OutputAnalyzer use
> > "match".
>
> My point is that you can't have a function called "matches" that performs a
> "find" instead of a "matches":
>
> ```
> private boolean matchesHelper(String s, Pattern pattern) {
> return s != null && pattern.matcher(s).find();
> }
> ```
>
> That's too confusing.
Thanks for the clarification. I've updated the code using your suggestion.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28077#issuecomment-3485603985