This change can prevent NPE and will be consistent overall code using the String equals method.
Comment From: quaff
method.getName() always return non-null.
Comment From: sbrannen
Thanks for the PR.
Please note, however, that the Method and method name will never be null in this context. Thus, we will leave the code as it currently is.