Polish: Array designators "[]" should be on the type, not the variable
(cherry picked from commit c782075)
This commit is contained in:
committed by
Juergen Hoeller
parent
295df21f06
commit
d5f358c33c
@@ -247,7 +247,7 @@ public class ContentCachingResponseWrapper extends HttpServletResponseWrapper {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(char buf[], int off, int len) {
|
||||
public void write(char[] buf, int off, int len) {
|
||||
super.write(buf, off, len);
|
||||
super.flush();
|
||||
}
|
||||
|
||||
@@ -548,7 +548,7 @@ public abstract class WebUtils {
|
||||
*/
|
||||
public static Cookie getCookie(HttpServletRequest request, String name) {
|
||||
Assert.notNull(request, "Request must not be null");
|
||||
Cookie cookies[] = request.getCookies();
|
||||
Cookie[] cookies = request.getCookies();
|
||||
if (cookies != null) {
|
||||
for (Cookie cookie : cookies) {
|
||||
if (name.equals(cookie.getName())) {
|
||||
|
||||
Reference in New Issue
Block a user