【fix sonar】 CookieInterceptor.java文件

This commit is contained in:
tianwenbo
2023-03-10 11:34:24 +08:00
parent 0302cb101d
commit fa5dd3a416
@@ -25,7 +25,7 @@ public class CookieInterceptor extends HandlerInterceptorAdapter {
// cookie
if (modelAndView!=null && request.getCookies()!=null && request.getCookies().length>0) {
HashMap<String, Cookie> cookieMap = new HashMap<String, Cookie>();
HashMap<String, Cookie> cookieMap = new HashMap<>();
for (Cookie ck : request.getCookies()) {
cookieMap.put(ck.getName(), ck);
}
@@ -36,8 +36,8 @@ public class CookieInterceptor extends HandlerInterceptorAdapter {
if (modelAndView != null) {
modelAndView.addObject("I18nUtil", FtlUtil.generateStaticModel(I18nUtil.class.getName()));
}
super.postHandle(request, response, handler, modelAndView);
}
}