소스 검색

优化代码

RuoYi 3 년 전
부모
커밋
a3615e5c6c

+ 2 - 2
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/StringUtils.java

@@ -295,9 +295,9 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils
295 295
     }
296 296
 
297 297
     /**
298
-     * 判断给定的set列表中是否包含数组array 判断给定的数组array中是否包含给定的元素value
298
+     * 判断给定的collection列表中是否包含数组array 判断给定的数组array中是否包含给定的元素value
299 299
      *
300
-     * @param set 给定的集合
300
+     * @param collection 给定的集合
301 301
      * @param array 给定的数组
302 302
      * @return boolean 结果
303 303
      */

+ 1 - 1
ruoyi-modules/ruoyi-job/src/main/java/com/ruoyi/job/util/JobInvokeUtil.java

@@ -34,7 +34,7 @@ public class JobInvokeUtil
34 34
         }
35 35
         else
36 36
         {
37
-            Object bean = Class.forName(beanName).newInstance();
37
+            Object bean = Class.forName(beanName).getDeclaredConstructor().newInstance();
38 38
             invokeMethod(bean, methodName, methodParams);
39 39
         }
40 40
     }