【fix sonar】 CookieInterceptor.java文件
This commit is contained in:
+3
-3
@@ -25,7 +25,7 @@ public class CookieInterceptor extends HandlerInterceptorAdapter {
|
|||||||
|
|
||||||
// cookie
|
// cookie
|
||||||
if (modelAndView!=null && request.getCookies()!=null && request.getCookies().length>0) {
|
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()) {
|
for (Cookie ck : request.getCookies()) {
|
||||||
cookieMap.put(ck.getName(), ck);
|
cookieMap.put(ck.getName(), ck);
|
||||||
}
|
}
|
||||||
@@ -36,8 +36,8 @@ public class CookieInterceptor extends HandlerInterceptorAdapter {
|
|||||||
if (modelAndView != null) {
|
if (modelAndView != null) {
|
||||||
modelAndView.addObject("I18nUtil", FtlUtil.generateStaticModel(I18nUtil.class.getName()));
|
modelAndView.addObject("I18nUtil", FtlUtil.generateStaticModel(I18nUtil.class.getName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
super.postHandle(request, response, handler, modelAndView);
|
super.postHandle(request, response, handler, modelAndView);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user