Skip to content

Commit

Permalink
Merge pull request #2891 from ZhangShenao/code-opt-zsa
Browse files Browse the repository at this point in the history
remove unnecessary `else` branch
  • Loading branch information
hazendaz committed Jun 27, 2023
2 parents c9e5b17 + 52d2345 commit 5d51f64
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/apache/ibatis/binding/MapperProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,8 @@ private MapperMethodInvoker cachedInvoker(Method method) throws Throwable {
try {
if (privateLookupInMethod == null) {
return new DefaultMethodInvoker(getMethodHandleJava8(method));
} else {
return new DefaultMethodInvoker(getMethodHandleJava9(method));
}
return new DefaultMethodInvoker(getMethodHandleJava9(method));
} catch (IllegalAccessException | InstantiationException | InvocationTargetException
| NoSuchMethodException e) {
throw new RuntimeException(e);
Expand Down

0 comments on commit 5d51f64

Please sign in to comment.