On 17/03/2025 12:08, Rémy Maucherat wrote:
Hi,
Would it be ok to use records and pattern variables (which replace the
instanceof then cast code) in Tomcat ?
+1
I think they would improve the code overall, esp records. Although it
would make the branches a bit more different, this is "boilerplate"
(as they say ;) ) code so unlikely to cause real merge problems.
Agreed.
I suspect a little refactoring may be required to use Records in some
cases. That is probably a good thing if it helps clarify what data is
static and what might be changing.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org