diff --git a/src/main/java/org/apache/ibatis/binding/MapperProxy.java b/src/main/java/org/apache/ibatis/binding/MapperProxy.java index d658efd8cb4..04b2802bd4b 100644 --- a/src/main/java/org/apache/ibatis/binding/MapperProxy.java +++ b/src/main/java/org/apache/ibatis/binding/MapperProxy.java @@ -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);