[Java]We can use the new features in JDK17 to improve performance
heliang666s opened this issue · comments
heliang666s commented
Is your feature request related to a problem? Please describe.
-
When judging the type of variable,use many if else.This is not aesthetically pleasing and at the same time mediocre in performance
Describe the solution you'd like
We can use the new feature of the jdk17:Pattern Matching for switch.
Additional context
If you agree it,please assign me,I can solve it.
LiangliangSui commented
Hi @heliang666s , Fury needs to be compatible with jdk 1.8, if we use Pattern Matching for switch, this will break this compatibility.