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

@@ -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

@@ -717,7 +717,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

@@ -116,7 +116,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

@@ -303,12 +303,12 @@ class StubWebApplicationContext implements WebApplicationContext {
//---------------------------------------------------------------------
@Override
public String getMessage(String code, @Nullable Object args[], @Nullable String defaultMessage, Locale locale) {
public String getMessage(String code, @Nullable Object[] args, @Nullable String defaultMessage, Locale locale) {
return this.messageSource.getMessage(code, args, defaultMessage, locale);
}
@Override
public String getMessage(String code, @Nullable Object args[], Locale locale) throws NoSuchMessageException {
public String getMessage(String code, @Nullable Object[] args, Locale locale) throws NoSuchMessageException {
return this.messageSource.getMessage(code, args, locale);
}