[RESOLVED] Difference between Method.hasName("XXX") and Method.getName() == "XXX"? #7694
CaledoniaProject
started this conversation in
General
Replies: 1 comment
-
Looking at the source code shows that there is no difference between the two: codeql/java/ql/lib/semmle/code/java/Element.qll Lines 11 to 15 in 70f4efb There might potentially be a minor performance difference, but I'm not sure about that. Which ever form you use is fine. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any difference between
Method.hasName("XXX")
andMethod.getName() == "XXX"
?Beta Was this translation helpful? Give feedback.
All reactions