A DESCRIPTION OF THE PROBLEM :
java.lang.reflect.Method#equals could be optimized to immediately return true if it is passed the same instance, as is the typical pattern. It may avoid some overhead when Methods are used as keys in Maps, which seems to be a common pattern with proxies.
java.lang.reflect.Method#equals could be optimized to immediately return true if it is passed the same instance, as is the typical pattern. It may avoid some overhead when Methods are used as keys in Maps, which seems to be a common pattern with proxies.
- links to
-
Review(master)
openjdk/jdk/28221