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

(cherry picked from commit c782075)
This commit is contained in:
igor-suhorukov
2018-02-25 09:11:42 +01:00
committed by Juergen Hoeller
parent 295df21f06
commit d5f358c33c
16 changed files with 24 additions and 24 deletions

View File

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

View File

@@ -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())) {