Skip to content

Commit acac25b

Browse files
committed
polishing
1 parent cb0c0c5 commit acac25b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/view/ContentNegotiatingViewResolver.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,7 @@ public View resolveViewName(String viewName, Locale locale) throws Exception {
282282
return NOT_ACCEPTABLE_VIEW;
283283
}
284284
else {
285-
if (logger.isDebugEnabled()) {
286-
logger.debug("No acceptable view found; returning null");
287-
}
285+
logger.debug("No acceptable view found; returning null");
288286
return null;
289287
}
290288
}

org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/view/RedirectView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2010 the original author or authors.
2+
* Copyright 2002-2011 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -402,7 +402,7 @@ protected void sendRedirect(
402402

403403
/**
404404
* Determines the status code to use for HTTP 1.1 compatible requests.
405-
* <p>The default implemenetation returns the {@link #setStatusCode(HttpStatus) statusCode}
405+
* <p>The default implementation returns the {@link #setStatusCode(HttpStatus) statusCode}
406406
* property if set, or the value of the {@link #RESPONSE_STATUS_ATTRIBUTE} attribute.
407407
* If neither are set, it defaults to {@link HttpStatus#SEE_OTHER} (303).
408408
* @param request the request to inspect

0 commit comments

Comments
 (0)