admin管理员组

文章数量:1531416

A boxed value is unboxed and then immediately reboxed.
装箱的数字1000为int 拆箱之后又重新装箱!

 /**
     * 生成不带类别标头的编码
     *
     * @param userId
     */
    private static synchronized String getCode(Long userId) {
        userId = (userId == null) ? 300: userId;
        return getDateTime() + toCode(userId);
    }`

改为:
userId = (userId == null) ? Long.valueOf(300) : userId;

本文标签: 拆装