Polish: Array designators "[]" should be on the type, not the variable

This commit is contained in:
igor-suhorukov
2018-02-25 11:11:42 +03:00
committed by Juergen Hoeller
parent 7f58d9ede0
commit c782075a13
16 changed files with 23 additions and 23 deletions

View File

@@ -271,7 +271,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();
}

View File

@@ -503,7 +503,7 @@ public abstract class WebUtils {
@Nullable
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())) {