Skip to content

Commit 52d2345

Browse files
committed
remove unnecessary else branch
1 parent 80290d7 commit 52d2345

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/org/apache/ibatis/binding/MapperProxy.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,8 @@ private MapperMethodInvoker cachedInvoker(Method method) throws Throwable {
9898
try {
9999
if (privateLookupInMethod == null) {
100100
return new DefaultMethodInvoker(getMethodHandleJava8(method));
101-
} else {
102-
return new DefaultMethodInvoker(getMethodHandleJava9(method));
103101
}
102+
return new DefaultMethodInvoker(getMethodHandleJava9(method));
104103
} catch (IllegalAccessException | InstantiationException | InvocationTargetException
105104
| NoSuchMethodException e) {
106105
throw new RuntimeException(e);

0 commit comments

Comments
 (0)