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

@@ -169,7 +169,7 @@ public abstract class DigestUtils {
}
private static char[] encodeHex(byte[] bytes) {
char chars[] = new char[32];
char[] chars = new char[32];
for (int i = 0; i < chars.length; i = i + 2) {
byte b = bytes[i / 2];
chars[i] = HEX_CHARS[(b >>> 0x4) & 0xf];

View File

@@ -165,7 +165,7 @@ public abstract class StreamUtils {
}
long bytesToCopy = end - start + 1;
byte buffer[] = new byte[StreamUtils.BUFFER_SIZE];
byte[] buffer = new byte[StreamUtils.BUFFER_SIZE];
while (bytesToCopy > 0) {
int bytesRead = in.read(buffer);
if (bytesRead == -1) {

View File

@@ -100,7 +100,7 @@ abstract class AbstractStaxHandler implements ContentHandler, LexicalHandler {
}
@Override
public final void characters(char ch[], int start, int length) throws SAXException {
public final void characters(char[] ch, int start, int length) throws SAXException {
try {
String data = new String(ch, start, length);
if (!this.inCData) {

View File

@@ -94,7 +94,7 @@ class DomContentHandler implements ContentHandler {
}
@Override
public void characters(char ch[], int start, int length) throws SAXException {
public void characters(char[] ch, int start, int length) throws SAXException {
String data = new String(ch, start, length);
Node parent = getParent();
Node lastChild = parent.getLastChild();
@@ -139,7 +139,7 @@ class DomContentHandler implements ContentHandler {
}
@Override
public void ignorableWhitespace(char ch[], int start, int length) throws SAXException {
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException {
}
@Override