Skip to content

Commit

Permalink
FILEUPLOAD-314 - Replace C-style array declaration for java
Browse files Browse the repository at this point in the history
  • Loading branch information
arturobernalg committed Apr 22, 2021
1 parent b825323 commit 15a88fc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,36 +222,36 @@ protected FileItemFactory createFactory(final File repository) {

static final String CHARSET_WIN1251 = "Cp1251";

static final int SWISS_GERMAN_STUFF_UNICODE [] = {
static final int[] SWISS_GERMAN_STUFF_UNICODE = {
0x47, 0x72, 0xFC, 0x65, 0x7A, 0x69, 0x5F, 0x7A, 0xE4, 0x6D, 0xE4
};

static final int SWISS_GERMAN_STUFF_ISO8859_1 [] = {
static final int[] SWISS_GERMAN_STUFF_ISO8859_1 = {
0x47, 0x72, 0xFC, 0x65, 0x7A, 0x69, 0x5F, 0x7A, 0xE4, 0x6D, 0xE4
};

static final int SWISS_GERMAN_STUFF_UTF8 [] = {
static final int[] SWISS_GERMAN_STUFF_UTF8 = {
0x47, 0x72, 0xC3, 0xBC, 0x65, 0x7A, 0x69, 0x5F, 0x7A, 0xC3, 0xA4,
0x6D, 0xC3, 0xA4
};

static final int RUSSIAN_STUFF_UNICODE [] = {
static final int[] RUSSIAN_STUFF_UNICODE = {
0x412, 0x441, 0x435, 0x43C, 0x5F, 0x43F, 0x440, 0x438,
0x432, 0x435, 0x442
};

static final int RUSSIAN_STUFF_UTF8 [] = {
static final int[] RUSSIAN_STUFF_UTF8 = {
0xD0, 0x92, 0xD1, 0x81, 0xD0, 0xB5, 0xD0, 0xBC, 0x5F,
0xD0, 0xBF, 0xD1, 0x80, 0xD0, 0xB8, 0xD0, 0xB2, 0xD0,
0xB5, 0xD1, 0x82
};

static final int RUSSIAN_STUFF_KOI8R [] = {
static final int[] RUSSIAN_STUFF_KOI8R = {
0xF7, 0xD3, 0xC5, 0xCD, 0x5F, 0xD0, 0xD2, 0xC9, 0xD7,
0xC5, 0xD4
};

static final int RUSSIAN_STUFF_WIN1251 [] = {
static final int[] RUSSIAN_STUFF_WIN1251 = {
0xC2, 0xF1, 0xE5, 0xEC, 0x5F, 0xEF, 0xF0, 0xE8, 0xE2,
0xE5, 0xF2
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ public int read() throws IOException {
}

@Override
public int read(final byte b[], final int off, final int len) throws IOException {
public int read(final byte[] b, final int off, final int len) throws IOException {
if (readLimit > 0) {
return in.read(b, off, Math.min(readLimit, len));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public int read()
return bais.read();
}
@Override
public int read(final byte b[], final int off, final int len) throws IOException
public int read(final byte[] b, final int off, final int len) throws IOException
{
return bais.read(b, off, Math.min(len, 3));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ public int read() throws IOException {
}

@Override
public int read(final byte b[], final int off, final int len) throws IOException {
public int read(final byte[] b, final int off, final int len) throws IOException {
if (readLimit > 0) {
return in.read(b, off, Math.min(readLimit, len));
}
Expand Down

0 comments on commit 15a88fc

Please sign in to comment.