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

@@ -123,7 +123,7 @@ public class MockBodyContent extends BodyContent {
}
@Override
public void write(char value[], int offset, int length) throws IOException {
public void write(char[] value, int offset, int length) throws IOException {
getEnclosingWriter().write(value, offset, length);
}

View File

@@ -687,7 +687,7 @@ public class MockHttpServletResponse implements HttpServletResponse {
}
@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();
setCommittedIfBufferSizeExceeded();

View File

@@ -115,7 +115,7 @@ public class MockJspWriter extends JspWriter {
}
@Override
public void write(char value[], int offset, int length) throws IOException {
public void write(char[] value, int offset, int length) throws IOException {
getTargetWriter().write(value, offset, length);
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2016 the original author or authors.
* Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -302,12 +302,12 @@ class StubWebApplicationContext implements WebApplicationContext {
//---------------------------------------------------------------------
@Override
public String getMessage(String code, Object args[], String defaultMessage, Locale locale) {
public String getMessage(String code, Object[] args, String defaultMessage, Locale locale) {
return this.messageSource.getMessage(code, args, defaultMessage, locale);
}
@Override
public String getMessage(String code, Object args[], Locale locale) throws NoSuchMessageException {
public String getMessage(String code, Object[] args, Locale locale) throws NoSuchMessageException {
return this.messageSource.getMessage(code, args, locale);
}