This pull request applies the instanceof pattern matching on spring-core module. This enhancement will improve the code readability.

Comment From: sbrannen

Hi @FelixDes,

Thanks for the PR.

Unfortunately, these are ASM classes, and the following is our policy on such classes.

Please refrain from modifying classes under org.springframework.asm, org.springframework.cglib, and org.springframework.objenesis. Those include repackaged forks of the third-party libraries ASM, CGLIB, and Objenesis. Any refactoring to those classes should take place upstream in the originating repository. The Spring Framework will then pick up the changes when syncing with official updates of the forked third-party libraries.