Explorar o código

[优化] 去除一部分新增的代码

miemie %!s(int64=6) %!d(string=hai) anos
pai
achega
9ed9337dbd

+ 0 - 10
mybatis-plus-core/src/main/java/com/baomidou/mybatisplus/core/MybatisMapperAnnotationBuilder.java

@@ -396,16 +396,6 @@ public class MybatisMapperAnnotationBuilder extends MapperAnnotationBuilder {
     private Class<?> getReturnType(Method method) {
         Class<?> returnType = method.getReturnType();
         Type resolvedReturnType = TypeParameterResolver.resolveReturnType(method, type);
-        /**
-         * 新加入下面 4 行,有 ResultType 注解则以注解优先
-         */
-        ResultType resultType = method.getAnnotation(ResultType.class);
-        if (resultType != null) {
-            return resultType.value();
-        }
-        /**
-         * 新加入上面 4 行,有 ResultType 注解则以注解优先
-         */
         if (resolvedReturnType instanceof Class) {
             returnType = (Class<?>) resolvedReturnType;
             if (returnType.isArray()) {