You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2022/10/08 19:31:18 UTC
[GitHub] [commons-lang] arturobernalg commented on a diff in pull request #875: simplify operations and avoid extra calculations
arturobernalg commented on code in PR #875:
URL: https://github.com/apache/commons-lang/pull/875#discussion_r990679581
##########
src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java:
##########
@@ -710,7 +710,7 @@ public static Method getMatchingAccessibleMethod(final Class<?> cls,
final String parameterTypeName = lastParameterType==null ? null : lastParameterType.getName();
final String parameterTypeSuperClassName = lastParameterType==null ? null : lastParameterType.getSuperclass().getName();
- if (parameterTypeName!= null && parameterTypeSuperClassName != null && !methodParameterComponentTypeName.equals(parameterTypeName)
+ if (parameterTypeName!= null && !methodParameterComponentTypeName.equals(parameterTypeName)
Review Comment:
HI @garydgregory
No needed. we can safely remove
TY
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org