On Tue, 10 Jun 2025 08:15:58 GMT, Christian Stein <cst...@openjdk.org> wrote:

>> Or the handling of `#` can be merged with the previous case ... somehow.
>
> Extracting a method wouldn't really simplify the code, as many local 
> variables are in play.
> 
> Merging the cases also ends up in more if-else constructs in the case block 
> that counter-act readability.
> 
> So, perhaps, the duplication is goog-enough here?

Created an internal shared function in 
https://github.com/openjdk/jdk/pull/25589/commits/bea8cc7905541e339ed30d0618e70ab6db7b6da6

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25589#discussion_r2139538469

Reply via email to