Skip to content

Commit

Permalink
Merge pull request #146 from harawata/144-suppl
Browse files Browse the repository at this point in the history
Remove unused local variable
  • Loading branch information
lukaszlenart authored Jan 10, 2022
2 parents 2ec43ea + a001464 commit 3e78688
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/ognl/OgnlRuntime.java
Original file line number Diff line number Diff line change
Expand Up @@ -1784,7 +1784,6 @@ private static MatchingMethod findBestMethod(List methods, Class typeClass, Stri
// it happens that we see the same method signature multiple times - for the current class or interfaces ...
// check for same signature
if (Arrays.equals(mm.mMethod.getParameterTypes(), m.getParameterTypes()) && mm.mMethod.getName().equals(m.getName())) {
boolean retsAreEqual = mm.mMethod.getReturnType().equals(m.getReturnType());
// it is the same method. we use the public one...
if (!Modifier.isPublic(mm.mMethod.getDeclaringClass().getModifiers())
&& Modifier.isPublic(m.getDeclaringClass().getModifiers())) {
Expand Down

0 comments on commit 3e78688

Please sign in to comment.