Skip to content

Commit

Permalink
remove unnecessary else branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangShenao committed Jun 26, 2023
1 parent 80290d7 commit 52d2345
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 52d2345

Please sign in to comment.