Polish: Array designators "[]" should be on the type, not the variable
This commit is contained in:
committed by
Juergen Hoeller
parent
7f58d9ede0
commit
c782075a13
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user