fury icon indicating copy to clipboard operation
fury copied to clipboard

[Java]We can use the new features in JDK17 to improve performance

Open heliang666s opened this issue 1 year ago • 1 comments

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.

heliang666s avatar Apr 16 '24 22:04 heliang666s

Hi @heliang666s , Fury needs to be compatible with jdk 1.8, if we use Pattern Matching for switch, this will break this compatibility.

LiangliangSui avatar Apr 17 '24 02:04 LiangliangSui