Replace deprecated methods
This commit is contained in:
committed by
Josh Cummings
parent
0cefb27928
commit
52e12ad64b
@@ -146,7 +146,7 @@ public class FilterInvocation {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
if (StringUtils.isEmpty(this.request.getMethod())) {
|
||||
if (!StringUtils.hasLength(this.request.getMethod())) {
|
||||
return "filter invocation [" + getRequestUrl() + "]";
|
||||
}
|
||||
else {
|
||||
|
||||
+1
-1
@@ -122,7 +122,7 @@ public class CookieRequestCache implements RequestCache {
|
||||
|
||||
private static String getCookiePath(HttpServletRequest request) {
|
||||
String contextPath = request.getContextPath();
|
||||
return (!StringUtils.isEmpty(contextPath)) ? contextPath : "/";
|
||||
return (StringUtils.hasLength(contextPath)) ? contextPath : "/";
|
||||
}
|
||||
|
||||
private boolean matchesSavedRequest(HttpServletRequest request, SavedRequest savedRequest) {
|
||||
|
||||
Reference in New Issue
Block a user