DATACMNS-1673 - Use Method.getParameterCount() where possible to improve performance.

Original pull request: #426.
This commit is contained in:
SergiiTsypanov
2020-02-25 09:37:48 +01:00
committed by Mark Paluch
parent 48e49babe3
commit 5f3102144c
3 changed files with 7 additions and 5 deletions

View File

@@ -166,6 +166,7 @@ public class Function {
public boolean isSignatureEqual(Function other) {
return getName().equals(other.getName()) //
&& method.getParameterCount() == other.method.getParameterCount()
&& Arrays.equals(method.getParameterTypes(), other.method.getParameterTypes());
}
}