陈昶聿
17 小时以前 4a4d0576265b65116b5961467b9e734ae6d76a59
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java
@@ -386,7 +386,9 @@
    private static List<String> splitCodes(String codes) {
        if (codes == null || codes.trim().isEmpty()) {
            return Collections.emptyList();
            // 不要返回 Collections.emptyList():JDK 17+ 强封装下,MyBatis OGNL
            // 反射调用 Collections$EmptyList.size() 会抛 InaccessibleObjectException。
            return new ArrayList<>();
        }
        List<String> codeList = new ArrayList<>();
        for (String code : codes.split(",")) {