In MethodHandleDesc, the ofField method uses enhanced switch, while the of and ofMethod methods use traditional switch. The same class should have a unified style. https://github.com/openjdk/jdk/pull/26769 <https://github.com/openjdk/jdk/pull/26769 > I have submitted a draft Pull Request and would appreciate some feedback. - Shaojin Wen
- Using enhanced switch in MethodHandleDesc wenshao