569 Star 1.5K Fork 718

黄勇 / smart-framework

 / 详情

WebUtil

待办的
创建于  
2016-07-19 14:30

org.smart4j.framework.util.WebUtil
优化建议182行 - 186行:

public static String getRequestPath(HttpServletRequest request) {
        String servletPath = request.getServletPath();
        String pathInfo = StringUtil.defaultIfEmpty(request.getPathInfo(), "");
        return servletPath + pathInfo;
    }

优化为:

public static String getRequestPath(HttpServletRequest request) {
        String servletPath = request.getServletPath();
        String pathInfo = StringUtil.defaultIfEmpty(request.getPathInfo(),StringUtils.EMPTY);
        return servletPath + pathInfo;
    }

评论 (0)

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
420911 jeff1993 1630735602
Java
1
https://gitee.com/huangyong/smart-framework.git
git@gitee.com:huangyong/smart-framework.git
huangyong
smart-framework
smart-framework

搜索帮助